Mps br/timing global.c: new diag "globalspreparetodestroy", reports if message queue not empty.

Copied from Perforce
 Change: 166952
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Kistruck 2008-12-16 16:20:16 +00:00
parent aac003454d
commit cd8f0ed2ad

View file

@ -422,6 +422,9 @@ void GlobalsPrepareToDestroy(Globals arenaGlobals)
/* is done before destroying the finalization pool as otherwise */
/* the message queue would have dangling pointers to messages */
/* whose memory has been unmapped. */
if(MessagePoll(arena)) {
DIAG_SINGLEF(( "GlobalsPrepareToDestroy", "Message queue not empty", NULL ));
}
MessageEmpty(arena);
/* throw away the BT used by messages */