Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Sync< T, AsyncMutex >::Lock Class Reference
Inheritance diagram for nix::Sync< T, AsyncMutex >::Lock:
[legend]
Collaboration diagram for nix::Sync< T, AsyncMutex >::Lock:
[legend]

Public Member Functions

 Lock (Lock &&)=default
 
Lock & operator= (Lock &&)=default
 
kj::Promise< void > wait ()
 

Member Function Documentation

◆ 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: