make it so dougt's assertions only happen for him.

there is no reason the whole world should see a billion printfs.
This commit is contained in:
sspitzer%netscape.com 1999-12-18 10:17:09 +00:00
Родитель 211cec496b
Коммит 08e592761d
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -191,7 +191,10 @@ NS_IMETHODIMP
nsEventQueueImpl::ProcessPendingEvents()
{
PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
#ifdef DEBUG_dougt
NS_ASSERTION(correctThread, "attemping to process events on the wrong thread");
#endif
if (!correctThread)
return NS_ERROR_FAILURE;
PL_ProcessPendingEvents(mEventQueue);
@ -203,7 +206,9 @@ NS_IMETHODIMP
nsEventQueueImpl::EventLoop()
{
PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
#ifdef DEBUG_dougt
NS_ASSERTION(correctThread, "attemping to process events on the wrong thread");
#endif
if (!correctThread)
return NS_ERROR_FAILURE;
@ -230,7 +235,9 @@ NS_IMETHODIMP
nsEventQueueImpl::HandleEvent(PLEvent* aEvent)
{
PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
#ifdef DEBUG_dougt
NS_ASSERTION(correctThread, "attemping to process events on the wrong thread");
#endif
if (!correctThread)
return NS_ERROR_FAILURE;
@ -242,7 +249,9 @@ NS_IMETHODIMP
nsEventQueueImpl::WaitForEvent(PLEvent** aResult)
{
PRBool correctThread = PL_IsQueueOnCurrentThread(mEventQueue);
#ifdef DEBUG_dougt
NS_ASSERTION(correctThread, "attemping to process events on the wrong thread");
#endif
if (!correctThread)
return NS_ERROR_FAILURE;