Files
AutoJs6/autojs/src/main/assets/modules/__threads__.js
2017-12-28 21:21:41 +08:00

12 lines
264 B
JavaScript

module.exports = function(__runtime__, scope){
var threads = Object.create(__runtime__.threads);
scope.sync = function(func, lock){
lock = lock || null;
return new org.mozilla.javascript.Synchronizer(func, lock);
}
return threads;
}