vibe.d beta banner
get vibe.d
0.7.31

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

Class InterruptibleTaskMutex

Alternative to TaskMutex that supports interruption.

class InterruptibleTaskMutex
  : Lockable ;

This class supports the use of Task.interrupt() while waiting in the lock() method. However, because the interface is not nothrow, it cannot be used as an object monitor.

Constructors

Constructors

NameDescription
this

Methods

Methods

NameDescription
lock
tryLock
unlock
tryLock
unlock

See Also

TaskMutex, InterruptibleRecursiveTaskMutex

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.