|
|
| Lock (Lock &&)=default |
| |
|
Lock & | operator= (Lock &&)=default |
| |
| kj::Promise< void > | wait () |
| |
◆ wait()
template<class T >
| kj::Promise< void > nix::Sync< T, AsyncMutex >::Lock::wait |
( |
| ) |
|
|
inline |
Releases the lock, waits for another promise to call Sync::notify, and reacquires the lock. There is no condition_variable-equivalent object to allow multiple wait queues on the same lock since we don't need that yet. There's no reason not to add such a type when needed.
The documentation for this class was generated from the following file: