struct ugcs::vsm::File_processor::Stream::Lock_cb¶
Overview¶
Control block for lock operations. More…
struct Lock_cb { // fields bool flock_thread_active = false; bool flock_acquire_requested = false; bool flock_acquired = false; std::condition_variable flock_notifier; };
Detailed Documentation¶
Control block for lock operations.
Fields¶
bool flock_thread_active = false
Set this to false to exit locker thread.
bool flock_acquire_requested = false
Set this to true to tell thread to call Lock()
bool flock_acquired = false
Tells if the file is locked currently.
std::condition_variable flock_notifier
Use to notify thread about state change.