Is it possible to "wait" on boost :: condition_variable without having to lock the mutex first? If this is not possible, can this be done using pthread lib directly?
For simplicity, I would like to avoid going directly to the OS level (e.g. futex on linux). But I also don't want the overhead of calling a mutex.
I understand the conditions of the race, doing it under normal circumstances. It was different for me.
source
share