|
cwidget
0.5.17
|
A box specialized for 'void'; may make it easier to write other templated classes. More...
#include <threads.h>
Public Member Functions | |
| box (bool _filled) | |
| void | take () |
| void | put () |
| bool | try_take () |
| bool | try_put () |
| bool | timed_take (const timespec &until) |
| bool | timed_put (const timespec &until) |
| template<typename Mutator > | |
| void | update (const Mutator &m) |
A box specialized for 'void'; may make it easier to write other templated classes.
Could maybe just be a mutex, but I don't think you can quite mimic the box API that way.
1.8.13