mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
BugZilla #8018
This commit is contained in:
parent
d18fa25ded
commit
bc3655e584
@ -796,6 +796,15 @@ PL_GetEventQueueSelectFD(PLEventQueue* self)
|
||||
#endif
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(PRBool)
|
||||
PL_IsQueueOnCurrentThread( PLEventQueue *queue )
|
||||
{
|
||||
PRThread *me = PR_GetCurrentThread();
|
||||
if ( me == queue->handlerThread )
|
||||
return PR_TRUE;
|
||||
else
|
||||
return PR_FALSE;
|
||||
} /* end PL_IsQueueOnCurrentThread() */
|
||||
|
||||
#if defined(WIN16) || defined(_WIN32)
|
||||
/*
|
||||
|
@ -384,6 +384,14 @@ PL_EventLoop(PLEventQueue* self);
|
||||
PR_EXTERN(PRInt32)
|
||||
PL_GetEventQueueSelectFD(PLEventQueue* self);
|
||||
|
||||
/*
|
||||
** This routine will allow you to check to see if the given eventQueue in
|
||||
** on the current thread. It will return PR_TRUE if so, else it will return
|
||||
** PR_FALSE
|
||||
*/
|
||||
PR_EXTERN(PRBool)
|
||||
PL_IsQueueOnCurrentThread( PLEventQueue *queue );
|
||||
|
||||
/*******************************************************************************
|
||||
* Event Operations
|
||||
******************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user