1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:52:28 +01:00

Push lines to the MOW where appropriate

This commit is contained in:
Kris Maglione
2008-12-07 11:33:56 -05:00
parent 7693ac5000
commit 0876a3bef2
2 changed files with 24 additions and 9 deletions

View File

@@ -1313,13 +1313,13 @@ const liberator = (function () //{{{
return true;
},
callInMainThread: function (callback)
callInMainThread: function (callback, self)
{
let mainThread = threadManager.mainThread;
if (!threadManager.isMainThread)
mainThread.dispatch({ run: callback }, mainThread.DISPATCH_NORMAL);
mainThread.dispatch({ run: callback.call(self) }, mainThread.DISPATCH_NORMAL);
else
callback();
callback.call(self);
},
threadYield: function (flush, interruptable)