PR_CEnterMonitor(event);
PR_Lock(event->lock);
_pl_DestroyEventForOwner(PLEvent* event, void* owner, PLEventQueue* queue){    PR_ASSERT(PR_GetMonitorEntryCount(queue->monitor) > 0);    if (event->owner == owner) {    PR_LOG(event_lm, PR_LOG_DEBUG,           ("$$$ \tdestroying event %0x for owner %0x", event, owner));    PL_DequeueEvent(event, queue);    if (event->synchronousResult == (void*)PR_TRUE) {        PR_CEnterMonitor(event);        event->synchronousResult = NULL;        PR_CNotify(event);        PR_CExitMonitor(event);    }    else {        PL_DestroyEvent(event);    }    }    else {    PR_LOG(event_lm, PR_LOG_DEBUG,           ("$$$ \tskipping event %0x for owner %0x", event, owner));    }}