vibe.d beta banner
get vibe.d
0.7.30

Class TaskReadWriteMutex.Mutex

A common baseclass for both of the provided mutexes.

The intent for the according mutex is specified through the INTENT template argument, which determines if a mutex is used for read or write locking.

Template arguments

class Mutex(vibe.core.sync.ReadWriteMutexState!(false).ReadWriteMutexState.LockingIntent INTENT);

Inherits from

  • Object (base class)

Methods

Name Description
lock Lock the mutex. cf. core.sync.mutex.Mutex
tryLock Try to lock the mutex. cf. core.sync.mutex.Mutex
unlock Unlock the mutex. cf. core.sync.mutex.Mutex
block ddox.authorsblock ddox.copyrightblock ddox.license
Authors
Copyright
License