#include <ConditionVar.h>
Inheritance diagram for clawsoft::ConditionVar:
Public Methods | |
void | signal () |
This will restart just one of the threads that are waiting for the condition to be reached. | |
void | broadcast () |
This will restart all the threads that are waiting for the condition to be reached. | |
void | wait (Mutex *mutex) |
This will unlock the Mutex mutex and will wait for this condition variable to be signaled. | |
void | timedWait (Mutex *mutex, long seconds=1, long nanoseconds=0) |
This will unlock the Mutex mutex and will wait for this condition variable to be signaled. | |
const char * | getClassName () |
Returns the name of the current class. | |
Static Public Methods | |
void | wait (ConditionVar *cv, Mutex *mutex) |
This is the static version of the wait method. | |
void | timedWait (ConditionVar *cv, Mutex *mutex, long seconds=1, long nanoseconds=0) |
This is the static version of the timedWait method. | |
int | installedCPUs () |
This will return how many CPUs are installed in the system. | |
double | cpuSpeed () |
This will return the CPU speed in megahertz. | |
int | totalMemory () |
Will return the total amount of system memory. | |
int | freeMemory () |
Will return the total amount of free system memory. | |
void | usleep (Uint32 usec) |
Will freeze the software for usec microseconds. | |
Protected Methods | |
void | setClassName (const char *n) |
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging. |
|
This will restart all the threads that are waiting for the condition to be reached.
|
|
This will return the CPU speed in megahertz.
|
|
Will return the total amount of free system memory.
|
|
Returns the name of the current class.
|
|
This will return how many CPUs are installed in the system.
|
|
Call this method when you need to set the name of the class you're creating, typically in it's constructor, remember that you must set the classname for every class you create, that way you can have more information while debugging.
|
|
This will restart just one of the threads that are waiting for the condition to be reached.
|
|
This is the static version of the timedWait method.
|
|
This will unlock the Mutex mutex and will wait for this condition variable to be signaled.
|
|
Will return the total amount of system memory.
|
|
Will freeze the software for usec microseconds.
|
|
This is the static version of the wait method.
|
|
This will unlock the Mutex mutex and will wait for this condition variable to be signaled.
|
Authors:
Juan V. Guerrero
Jannette C. Mejia
Juan C. Guevara
Powered by: