#include <thread.hpp>

Public Member Functions | |
| void | push () |
| void | shutdown () |
| bool | check_shutdown () |
| bool | wait_pop () |
| void | wait_empty () |
| stack () | |
| Initialise an empty stack. | |
| void | shutdown () |
| Sets the state to shutting down and awakens all waiting threads. | |
| bool | check_shutdown () |
| Returns true if we are shutting down. | |
| void | push () |
| Adds an item. | |
| bool | wait_pop () |
| Removes an item from the stack, or waits until an item is added. | |
| void | wait_empty () |
| Waits until the stack is empty. | |
This is used by message queues to maintain the size of the queue, or wait for objects to be added. The strange thing is that the implementation is completely different in Win32 and pthreads.
Definition at line 183 of file posix/thread.hpp.
| bool dynamic::api::stack::wait_pop | ( | ) | [inline] |
Removes an item from the stack, or waits until an item is added.
Returns false if we are shutting down
Definition at line 215 of file win32/thread.hpp.
1.5.7.1