rename condidition variable and add mutex for pending update
This commit is contained in:
parent
4c02002265
commit
b7db65a023
@ -6,11 +6,12 @@ struct SharedBarriers {
|
|||||||
SharedBarriers () : update_ongoing(false), number_of_queries(0) { }
|
SharedBarriers () : update_ongoing(false), number_of_queries(0) { }
|
||||||
|
|
||||||
// Mutex to protect access to the boolean variable
|
// Mutex to protect access to the boolean variable
|
||||||
boost::interprocess::interprocess_mutex update_mutex;
|
boost::interprocess::interprocess_mutex pending_update_mutex;
|
||||||
boost::interprocess::interprocess_mutex query_mutex;
|
boost::interprocess::interprocess_mutex update_mutex;
|
||||||
|
boost::interprocess::interprocess_mutex query_mutex;
|
||||||
|
|
||||||
// Condition that no update is running
|
// Condition that no update is running
|
||||||
boost::interprocess::interprocess_condition update_finished_condition;
|
boost::interprocess::interprocess_condition no_running_queries_condition;
|
||||||
|
|
||||||
// Is there an ongoing update?
|
// Is there an ongoing update?
|
||||||
bool update_ongoing;
|
bool update_ongoing;
|
||||||
|
Loading…
Reference in New Issue
Block a user