vibe.d beta banner
get vibe.d
0.7.30

Class InterruptibleTaskReadWriteMutex.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!(true).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
Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.