vibe.d beta banner
get vibe.d
0.10.0

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

NameDescription
this ()

Methods

NameDescription
lock ()
tryLock ()
unlock ()
tryLock ()
unlock ()

See Also

TaskMutex, InterruptibleRecursiveTaskMutex

Authors

Leonid Kramer, Sönke Ludwig, Manuel Frischknecht

Copyright

© 2012-2019 Sönke Ludwig

License

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