FARGOS/VISTA Object Management Environment Core
..
|
Implementation of OME thread controller for native threads. More...
#include <OMEthreadCntrl.h>
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... | |
![]() | |
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 | |
![]() | |
class OMEthread * | threadInfo |
uint32_t | exitStatus |
Implementation of OME thread controller for native threads.
|
explicit |
References LOG_COUT, LOG_ENDLINE, NULL, OMEpthreadPrologue(), PTHREAD_SCOPE_SYSTEM, suspendCondition, threadID, and threadMutex.
OMEthreadNative::~OMEthreadNative | ( | ) |
References suspendCondition, and threadMutex.
|
overridevirtual |
Return label identifying the type of the thread controller.
Implements OMEthreadController.
|
inlineoverridevirtual |
Execute a time slice for an active thread.
Implements OMEthreadController.
|
staticprivate |
References pthread_cleanup_push, OMEtickInterval::startInterval(), and OMEthreadController::threadInfo.
Referenced by OMEthreadNative().
|
overridevirtual |
Release a suspended thread.
Implements OMEthreadController.
References suspendCondition, and threadMutex.
|
overridevirtual |
Suspend an active thread.
Implements OMEthreadController.
References suspendCondition, and threadMutex.
|
overridevirtual |
Terminate a thread.
Implements OMEthreadController.
References OMEtickInterval::addIntervalCounts(), OMEthread::callStack, OMEcallStack::methodBody, OMEtickInterval::noteThreadDead(), OME_EXPECT_TRUE, OMEtickInterval::stopInterval(), threadID, OMEthreadController::threadInfo, and OMEthread::tickInterval.
|
overridevirtual |
Yield time slice currently being used by an active thread.
Implements OMEthreadController.
|
private |
Referenced by OMEthreadNative(), releaseThread(), suspendThread(), and ~OMEthreadNative().
|
private |
Referenced by OMEthreadNative(), and terminateThread().
|
private |
Referenced by OMEthreadNative(), releaseThread(), suspendThread(), and ~OMEthreadNative().
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |