UNPKG

locker-server

Version:

lock server written in node.js

20 lines (14 loc) 437 B
(function(module) { var LockQueue = require("./LockQueue"); function LockQueueManager() { this.queues = {}; }; LockQueueManager.prototype.getQueue = function(name) { if (!this.queues[name]) { this.queues[name] = new LockQueue(name); } // need to release some queues that is empty return this.queues[name]; }; module.exports = LockQueueManager; })(module);