![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
demonstrates how to wait on a simple boolean flag
Definition at line 40 of file sync-waiting-test.cpp.
Public Member Functions | |
| void | getIt () |
| void | provide (uint val) |
| uint | result () |
| harvesting the result... | |
Private Attributes | |
| atomic_uint | sum_ {0} |
| atomic_uint | input_ {0} |
| atomic_bool | got_new_data_ {false} |
Additional Inherited Members | |
Static Public Member Functions inherited from Sync< CONF > | |
| static Monitor & | getMonitor (Sync const *forThis) |
|
inline |
Definition at line 47 of file sync-waiting-test.cpp.
|
inline |
Definition at line 53 of file sync-waiting-test.cpp.
References Sync< CONF >::Lock::notify_all().
Here is the call graph for this function:
|
inline |
harvesting the result...
Definition at line 62 of file sync-waiting-test.cpp.
|
private |
Definition at line 43 of file sync-waiting-test.cpp.
|
private |
Definition at line 43 of file sync-waiting-test.cpp.
|
private |
Definition at line 44 of file sync-waiting-test.cpp.
Inheritance diagram for SyncOnBool:
Collaboration diagram for SyncOnBool: