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 > Class Template Reference
Inheritance diagram for nix::Sync< T, AsyncMutex >:
[legend]
Collaboration diagram for nix::Sync< T, AsyncMutex >:
[legend]

Classes

class  Lock
 

Public Member Functions

 Sync (T &&data)
 
void notify ()
 
auto lockSync (NeverAsync={})
 
kj::Promise< Lock > lock ()
 
std::optional< Lock > tryLock ()
 

Member Function Documentation

◆ notify()

template<class T >
void nix::Sync< T, AsyncMutex >::notify ( )
inline

Notify all promises awaiting Lock::wait. There is no notify_one like std::condition_variable provides owing to implementation complexities.


The documentation for this class was generated from the following file: