RDK Documentation (Open Sourced RDK Components)
|
Data Structures | |
class | Element |
class | producer |
class | consumer |
Macros | |
#define | CCEC_OSAL_NAMESPACE |
#define | CCEC_OSAL_BEGIN_NAMESPACE namespace CCEC_OSAL { |
#define | CCEC_OSAL_END_NAMESPACE } |
Functions | |
int | main () |
CCEC_OSAL::ConditionVariable::~ConditionVariable (void) | |
Destructor. Destroys the ConditionVariable object. More... | |
void | CCEC_OSAL::ConditionVariable::set (void) |
sets the condition. Sets the condition assosiated with the ConditionVariable object. More... | |
void | CCEC_OSAL::ConditionVariable::reset (void) |
resets the condition. Resets the condition assosiated with the ConditionVariable object to default (false). More... | |
bool | CCEC_OSAL::ConditionVariable::isSet (void) |
Checks the status of the condition. Returns the status of the condition associated. Could be true/false. More... | |
void | CCEC_OSAL::ConditionVariable::wait (void) |
Wait until the conditional variable is signalled. Causes the current thread to wait until it is signalled or interrupted. Calling thread will wait undefinetly until some other thread signals the ConditionVariable by calling notify/notifyAll. | |
long | CCEC_OSAL::ConditionVariable::wait (long timeout) |
Wait until the conditional variable is signalled. Causes the current thread to wait until it is signalled or interrupted . Calling thread will wait undefinetly until some other thread signals the ConditionVariable by calling notify/notifyAll. | |
void | CCEC_OSAL::ConditionVariable::notify (void) |
void | CCEC_OSAL::ConditionVariable::notifyAll (void) |
void * | CCEC_OSAL::ConditionVariable::getNativeHandle (void) |
CCEC_OSAL::Mutex::Mutex (void) | |
Constructor. Creates Mutex object. More... | |
Mutex & | CCEC_OSAL::Mutex::operator= (const Mutex &) |
CCEC_OSAL::Mutex::~Mutex (void) | |
Destructor Destroys the Mutex object. More... | |
void | CCEC_OSAL::Mutex::lock (void) |
Locks the given mutex. More... | |
void | CCEC_OSAL::Mutex::unlock (void) |
Unlocks the given mutex. More... | |
void * | CCEC_OSAL::Mutex::getNativeHandle (void) |
Retrieves handle to the underlying native mutex implementation. More... | |
CCEC_OSAL::Thread::Thread (Runnable &target) | |
Constructor. More... | |
Variables | |
static EventQueue< Element * > * | intQueue |
- Name of the thread context. | |||
Allocates a new Thread object
| |||
static void * | CCEC_OSAL::Thread::CEntry (void *arg) | ||
Destructor. More... | |||
CCEC_OSAL::Thread::Thread (Runnable &target, const int8_t *name) | |||
Destructor. More... | |||
virtual | CCEC_OSAL::Thread::~Thread (void) | ||
Destructor. More... | |||
void | CCEC_OSAL::Thread::run (void) | ||
Executes the run() method of runnable object. More... | |||
void | CCEC_OSAL::Thread::start (void) | ||
Starts excecution of the thread. More... | |||
void | CCEC_OSAL::Thread::detach (void) | ||
Detaches the thread. More... | |||
class Element |
Definition at line 39 of file test_EventQueue.cpp.
Public Member Functions | |
Element (int i) | |
Data Fields | |
int | value |
class producer |
Definition at line 50 of file test_EventQueue.cpp.
Private Member Functions | |
void | run (void) |
Additional Inherited Members |
class consumer |
Definition at line 61 of file test_EventQueue.cpp.
Private Member Functions | |
void | run (void) |
Additional Inherited Members |
ConditionVariable::~ConditionVariable | ( | void | ) |
Destructor. Destroys the ConditionVariable object.
Definition at line 51 of file ConditionVariable.cpp.
void ConditionVariable::set | ( | void | ) |
sets the condition. Sets the condition assosiated with the ConditionVariable object.
Definition at line 61 of file ConditionVariable.cpp.
void ConditionVariable::reset | ( | void | ) |
resets the condition. Resets the condition assosiated with the ConditionVariable object to default (false).
Definition at line 68 of file ConditionVariable.cpp.
bool ConditionVariable::isSet | ( | void | ) |
Checks the status of the condition. Returns the status of the condition associated. Could be true/false.
Definition at line 75 of file ConditionVariable.cpp.
CCEC_OSAL_BEGIN_NAMESPACE Mutex::Mutex | ( | void | ) |
Mutex::~Mutex | ( | void | ) |
void Mutex::lock | ( | void | ) |
Locks the given mutex.
Calling thread will acquire the mutex lock if available and will immediately return. Subsequent call by other threads before current thread releasing the mutex will result in those threads to block.
void Mutex::unlock | ( | void | ) |
void * Mutex::getNativeHandle | ( | void | ) |
|
staticprivate |
Thread::Thread | ( | Runnable & | target | ) |
Constructor.
Allocates a new Thread object
target | - Object implements Runnable interface. |
Definition at line 45 of file Thread.cpp.
Thread::Thread | ( | Runnable & | target, |
const int8_t * | name | ||
) |
|
virtual |
|
virtual |
Executes the run() method of runnable object.
If this object is created by passing reference to a runnable object, that object's run() will be executed, otherwise this method does nothing and returns.
Implements CCEC_OSAL::Runnable.
Definition at line 57 of file Thread.cpp.
void Thread::start | ( | void | ) |
Starts excecution of the thread.
Causes this thread to begin execution;This calls the run method of this thread. The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
Definition at line 62 of file Thread.cpp.
void Thread::detach | ( | void | ) |