Mutex.lock_nothrow

If this lock is not already held by the caller, the lock is acquired, then the internal counter is incremented by one.

Note: Mutex.lock does not throw, but a class derived from Mutex can throw. Use lock_nothrow in nothrow @nogc code.

  1. void lock()
  2. void lock()
  3. void lock_nothrow()
    class Mutex
    final nothrow @trusted @nogc
    void
    lock_nothrow
    (
    this Q
    )
    ()
    if (
    is(Q == Mutex) ||
    is(Q == shared Mutex)
    )
Suggestion Box / Bug Report