This commit is contained in:
larryh%netscape.com 1999-06-14 18:07:59 +00:00
parent d18fa25ded
commit bc3655e584
2 changed files with 17 additions and 0 deletions

View File

@ -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)
/*

View File

@ -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
******************************************************************************/