Class: shaka.util.Mutex

A simple mutex.

Constructor

new Mutex()

A simple mutex.

Creates the mutex.
Source:

Members

acquiredMutexId_ :number

Type:
  • number
Source:

nextMutexId_ :number

Type:
  • number
Source:

waiting_ :Array.<function()>

Type:
  • Array.<function()>
Source:

Methods

acquire() → {Promise.<number>}

Source:
Returns:
mutexId
Type
Promise.<number>

release(mutexId)

Parameters:
Name Type Description
mutexId number
Source: