- Fixed race condition in ReadWriteLocks
- 100% unit test coverage
- All callbacks now have the object as
this
value - Added tests for ReadWriteLock
- Added coverage test (rpm run cover)
Deadlock fix (thanks to Miljenko Rebernisak)
Conditions can now be a string, number, boolean, regexp, besides the previously supported function type. This changes
the condition test to a ===
equality-test or a regexp.test(). This allows code wait calls to become much shorter in
common cases. Example:
cond.wait('ready', function () {
console.log('It is ready!');
});
Many unit tests have been added for mutexes, semaphores and condition variables.
First release