Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Mutex

Hierarchy

  • Mutex

Index

Constructors

Constructors

constructor

  • Mutex allows to control code execution order and to prevent conflicts in a multi-thread application. It provides a way to pause execution in one thread until a condition is met in another.

    // Creates/gets the "writeMutex" mutex available in all threads
    var writeMutex = Mutex('writeMutex');

    Parameters

    • key: String

      Describes the global mutex key

    Returns WAKMutexProxy