gPTP Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OSThread Class Referenceabstract

#include <avbts_osthread.hpp>

Inheritance diagram for OSThread:
Inheritance graph
Collaboration diagram for OSThread:
Collaboration graph

Public Member Functions

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

Detailed Description

Provides a generic interface for threads

Member Function Documentation

virtual bool OSThread::join ( OSThreadExitCode exit_code)
pure virtual

Joins the thread.

Parameters
exit_codeOSThreadExitCode enumeration
Returns
Implementation specific

Implemented in WindowsThread, and LinuxThread.

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

Starts a new thread.

Parameters
functionCallback to be started on the thread
argFunction arguments
Returns
Implementation dependent

Implemented in WindowsThread, and LinuxThread.


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