Class: shaka.util.Mutex
A simple mutex.
Constructor
new Mutex()
A simple mutex.
Creates the mutex.
- Source:
Members
acquiredMutexId_ :number
Type:
- Source:
nextMutexId_ :number
Type:
- Source:
waiting_ :Array.<function()>
Type:
- Source:
Methods
acquire() → {Promise.<number>}
- Source:
Returns:
mutexId
-
Type
-
Promise.<number>
release(mutexId)
Parameters:
Name |
Type |
Description |
mutexId |
number
|
|
- Source: