mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
20 lines
422 B
JavaScript
20 lines
422 B
JavaScript
![]() |
define([], function () {
|
||
|
'use strict';
|
||
|
|
||
|
function ResourceLockInstance() {
|
||
|
}
|
||
|
|
||
|
ResourceLockInstance.prototype.acquire = function () {
|
||
|
this._isHeld = true;
|
||
|
};
|
||
|
|
||
|
ResourceLockInstance.prototype.isHeld = function () {
|
||
|
return this._isHeld === true;
|
||
|
};
|
||
|
|
||
|
ResourceLockInstance.prototype.release = function () {
|
||
|
this._isHeld = false;
|
||
|
};
|
||
|
|
||
|
return ResourceLockInstance;
|
||
|
});
|