vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

Class TaskReadWriteMutex.Mutex

A common baseclass for both of the provided mutexes.

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

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.

Methods

NameDescription
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-2016 RejectedSoftware e.K.

License

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