Proper use of absl::Condition #1850
|
I am using Abseil Synchronization primitives. I want to write a class Foo with data member int field_ protected by absl::Mutex guard_. What is the proper way to write a method of a class Foo using absl::Condition, which takes int parameter v and waits on a mutex until value of the field_ becomes equal to v? class Foo { } |
Answered by
derekmauro
Mar 4, 2025
Replies: 1 comment 1 reply
|
abseil-cpp/absl/synchronization/mutex.h Lines 773 to 777 in be68967 |
1 reply
Answer selected by
rogeeff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
abseil-cpp/absl/synchronization/mutex.h
Lines 773 to 777 in be68967