gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LinuxThread Class Reference

#include <linux_hal_common.hpp>

Inheritance diagram for LinuxThread:
Inheritance graph
Collaboration diagram for LinuxThread:
Collaboration graph

Public Member Functions

virtual bool start (OSThreadFunction function, void *arg)
 Starts a new thread. More...
 
virtual bool join (OSThreadExitCode &exit_code)
 Joins a new thread. More...
 

Friends

class LinuxThreadFactory
 

Detailed Description

Extends OSThread class to Linux

Member Function Documentation

virtual bool LinuxThread::join ( OSThreadExitCode exit_code)
virtual

Joins a new thread.

Parameters
exit_codeCallback's return code
Returns
TRUE if ok, FALSE if error.

Implements OSThread.

virtual bool LinuxThread::start ( OSThreadFunction  function,
void *  arg 
)
virtual

Starts a new thread.

Parameters
functionCallback to the thread to be started
argFunction's parameters
Returns
TRUE if no error during init, FALSE otherwise

Implements OSThread.


The documentation for this class was generated from the following file: