#include <threads.h>

Public Member Functions | |
| Synchronized () | |
| ~Synchronized () | |
| void | wait () |
| Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object. | |
| boolean | wait (unsigned long timeout) |
| Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed. | |
| void | notify () |
| Wakes up a single thread that is waiting on this object's monitor. | |
| void | notify_all () |
| Wakes up all threads that are waiting on this object's monitor. | |
| void | lock () |
| Enter a critical section. | |
| boolean | trylock () |
| Try to enter a critical section. | |
| void | unlock () |
| Leave a critical section. | |
| Synchronized::Synchronized | ( | ) |
| Synchronized::~Synchronized | ( | ) |
| void Synchronized::wait | ( | ) |
Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.
| boolean Synchronized::wait | ( | unsigned long | timeout | ) |
Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
| timeout | timeout in milliseconds. | |
| return | TRUE if timeout occured, FALSE otherwise. |
| void Synchronized::notify | ( | ) |
Wakes up a single thread that is waiting on this object's monitor.
| void Synchronized::notify_all | ( | ) |
Wakes up all threads that are waiting on this object's monitor.
| void Synchronized::lock | ( | ) |
Enter a critical section.
| boolean Synchronized::trylock | ( | ) |
Try to enter a critical section.
| void Synchronized::unlock | ( | ) |
Leave a critical section.
1.5.6