зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
211cec496b
Коммит
08e592761d
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче