rem: if (g_eventQueueService) g_eventQueueService.popThreadEventQueue(queue); else g_threadManager.currentThread.popEventQueue(); 
context: function lockedExec( func ){    if (!g_bInitedLockedExec) {        try {            var cl = Components.classes["@mozilla.org/event-queue-service;1"];            if (cl) {                g_eventQueueService =                    cl.getService(Components.interfaces.nsIEventQueueService);            }        }        catch (exc) { // eventQueue has vanished on trunk        }        if (!g_eventQueueService) {            g_threadManager =                Components.classes["@mozilla.org/thread-manager;1"]                .getService(Components.interfaces.nsIThreadManager);        }        g_bInitedLockedExec = true;    }        var queue;    var ret;    if (g_eventQueueService)        queue = g_eventQueueService.pushThreadEventQueue();    else // we are on trunk using nsIThreadInternal        g_threadManager.currentThread.pushEventQueue(null);    try {        ret = func();    }    catch (exc) {        if (g_eventQueueService)            g_eventQueueService.popThreadEventQueue(queue);        else // we are on trunk using nsIThreadInternal            g_threadManager.currentThread.popEventQueue();        throw exc;    }    if (g_eventQueueService)        g_eventQueueService.popThreadEventQueue(queue);    else // we are on trunk using nsIThreadInternal        g_threadManager.currentThread.popEventQueue();    return ret;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7c0c21e19869e3198e0cbbabbeb306fa60cd3ebb/calWcapUtils.js/buggy/calendar/providers/wcap/calWcapUtils.js