YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
recursive_mutex.cpp
Go to the documentation of this file.
1
3
4namespace yaclib::detail::fiber {
5
12
15 return false;
16 }
17 LockHelper();
18 return true;
19}
20
22 YACLIB_DEBUG(_occupied_count == 0, "unlock on not locked recursive mutex");
24 if (_occupied_count == 0) {
25 _owner_id = 0;
26 }
27}
32
36
37} // namespace yaclib::detail::fiber
WaitStatus Wait(NoTimeoutTag)
Definition queue.cpp:5
static detail::fiber::FiberBase::Id GetId()
Definition scheduler.cpp:52
#define YACLIB_DEBUG(cond, message)
Definition log.hpp:84
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25