Ginga  0.13.6
 All Classes Namespaces Functions Variables
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
br::pucrio::telemidia::ginga::core::system::thread::Thread Class Referenceabstract
Inheritance diagram for br::pucrio::telemidia::ginga::core::system::thread::Thread:
Inheritance graph
[legend]

Public Member Functions

virtual void startThread ()
 
bool sleep (long int seconds)
 
bool mSleep (long int milliseconds)
 
void wakeUp ()
 
void lock ()
 
void unlock ()
 
void waitForUnlockCondition ()
 
bool unlockConditionSatisfied ()
 

Static Public Member Functions

static void mutexInit (pthread_mutex_t *mutex, bool recursive=false)
 
static void mutexDestroy (pthread_mutex_t *mutex)
 
static void mutexLock (pthread_mutex_t *mutex)
 
static void mutexUnlock (pthread_mutex_t *mutex)
 
static void condInit (pthread_cond_t *cond, const pthread_condattr_t *attr)
 
static void condDestroy (pthread_cond_t *cond)
 
static void condWait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 
static void condSignal (pthread_cond_t *cond)
 
static void startNewThread (void *(*funcion)(void *), void *ptr)
 

Protected Member Functions

virtual void run ()=0
 

Protected Attributes

bool isDeleting
 
pthread_mutex_t threadMutex
 
bool isThreadSleeping
 
pthread_mutex_t threadFlagMutex
 
pthread_cond_t threadFlagConditionVariable
 
bool isWaiting
 
pthread_mutex_t threadFlagMutexLockUntilSignal
 
pthread_cond_t threadFlagCVLockUntilSignal
 

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