Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
SyncOnBool Class Reference

Description

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 MonitorgetMonitor (Sync const *forThis)
 

Member Function Documentation

◆ getIt()

void getIt ( )
inline

Definition at line 47 of file sync-waiting-test.cpp.

◆ provide()

void provide ( uint  val)
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:

◆ result()

uint result ( )
inline

harvesting the result...

Definition at line 62 of file sync-waiting-test.cpp.

Member Data Documentation

◆ sum_

atomic_uint sum_ {0}
private

Definition at line 43 of file sync-waiting-test.cpp.

◆ input_

atomic_uint input_ {0}
private

Definition at line 43 of file sync-waiting-test.cpp.

◆ got_new_data_

atomic_bool got_new_data_ {false}
private

Definition at line 44 of file sync-waiting-test.cpp.

+ Inheritance diagram for SyncOnBool:
+ Collaboration diagram for SyncOnBool:

The documentation for this class was generated from the following file: