Open 13579xxl opened 8 months ago
Maybe it can make the program faster , because the lock_guard seems more 'lightweight' than the unique_lock If I misunderstand , pardon me.
Condition variable requires a unique_lock for its wait() function.
unique_lock
wait()
Maybe it can make the program faster , because the lock_guard seems more 'lightweight' than the unique_lock If I misunderstand , pardon me.