FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEthreadNative Class Referencefinal

Implementation of OME thread controller for native threads. More...

#include <OMEthreadCntrl.h>

+ Inheritance diagram for OMEthreadNative:

Public Member Functions

 OMEthreadNative (OMEthread *t)
 
 ~OMEthreadNative ()
 
virtual void releaseThread () override
 Release a suspended thread. More...
 
virtual void suspendThread () override
 Suspend an active thread. More...
 
virtual void terminateThread () override
 Terminate a thread. More...
 
virtual void yieldSlice () override
 Yield time slice currently being used by an active thread. More...
 
virtual void executeSlice () override
 Execute a time slice for an active thread. More...
 
virtual const char * controllerType () const override
 Return label identifying the type of the thread controller. More...
 
- Public Member Functions inherited from OMEthreadController
 OMEthreadController (OMEthread *t)
 
virtual ~OMEthreadController ()
 

Static Private Member Functions

static void * OMEpthreadPrologue (void *)
 

Private Attributes

pthread_mutex_t threadMutex
 
pthread_cond_t suspendCondition
 
pthread_t threadID
 

Additional Inherited Members

- Public Attributes inherited from OMEthreadController
class OMEthreadthreadInfo
 
uint32_t exitStatus
 

Detailed Description

Implementation of OME thread controller for native threads.

Constructor & Destructor Documentation

◆ OMEthreadNative()

OMEthreadNative::OMEthreadNative ( OMEthread t)
explicit

◆ ~OMEthreadNative()

OMEthreadNative::~OMEthreadNative ( )

References suspendCondition, and threadMutex.

Member Function Documentation

◆ controllerType()

const char * OMEthreadNative::controllerType ( ) const
overridevirtual

Return label identifying the type of the thread controller.

Implements OMEthreadController.

◆ executeSlice()

virtual void OMEthreadNative::executeSlice ( )
inlineoverridevirtual

Execute a time slice for an active thread.

Implements OMEthreadController.

◆ OMEpthreadPrologue()

void * OMEthreadNative::OMEpthreadPrologue ( void *  arg)
staticprivate

◆ releaseThread()

void OMEthreadNative::releaseThread ( )
overridevirtual

Release a suspended thread.

Implements OMEthreadController.

References suspendCondition, and threadMutex.

◆ suspendThread()

void OMEthreadNative::suspendThread ( )
overridevirtual

Suspend an active thread.

Implements OMEthreadController.

References suspendCondition, and threadMutex.

◆ terminateThread()

◆ yieldSlice()

void OMEthreadNative::yieldSlice ( )
overridevirtual

Yield time slice currently being used by an active thread.

Implements OMEthreadController.

Member Data Documentation

◆ suspendCondition

pthread_cond_t OMEthreadNative::suspendCondition
private

◆ threadID

pthread_t OMEthreadNative::threadID
private

Referenced by OMEthreadNative(), and terminateThread().

◆ threadMutex

pthread_mutex_t OMEthreadNative::threadMutex
private

The documentation for this class was generated from the following files:
Generated: Tue Jul 28 2020 16:03:27
Support Information