Skip to content

DawnAngel/mutex.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

mutex.js

A Mutex locking system non-blocking for Javascript

Usage

Download the library and include it in your html.

<script src="js/mutex.js"></script>

Then you just need to create an instance of the class and use it this way.

<script>

	var mutex = new Mutex();

	mutex.lock(function(){
		/* The code to process goes here */
		console.log('Processing the code');

		/* When the processing is finished */
		mutex.unlock();
	});

</script>

About

A Mutex locking system non-blocking for Javascript

Resources

Stars

Watchers

Forks

Packages

No packages published