File "index.js"

Full Path: /srv/www/www.cadoro.it/app/lib/ngCordova/index.js
File size: 645 bytes
MIME-type: text/plain
Charset: utf-8

var Semaphore = require('./lib/Semaphore');
var CondVariable = require('./lib/CondVariable');
var Mutex = require('./lib/Mutex');
var ReadWriteLock = require('./lib/ReadWriteLock');


exports.Semaphore = Semaphore;
exports.CondVariable = CondVariable;
exports.Mutex = Mutex;
exports.ReadWriteLock = ReadWriteLock;


exports.createCondVariable = function (initialValue) {
	return new CondVariable(initialValue);
};

exports.createSemaphore = function (initialCount) {
	return new Semaphore(initialCount);
};

exports.createMutex = function () {
	return new Mutex();
};

exports.createReadWriteLock = function () {
	return new ReadWriteLock();
};