Bug 545338 - RPCChannel should use events rather than thread messages for NotifyWokerThread. r=bent.

This commit is contained in:
Jim Mathies
2010-03-25 16:53:10 -05:00
parent a2e5b35e61
commit c05a8971ee
4 changed files with 62 additions and 57 deletions

View File

@@ -63,12 +63,19 @@ SyncChannel::SyncChannel(SyncListener* aListener)
mNextSeqno(0),
mTimeoutMs(kNoTimeout)
{
MOZ_COUNT_CTOR(SyncChannel);
MOZ_COUNT_CTOR(SyncChannel);
#ifdef OS_WIN
mEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
NS_ASSERTION(mEvent, "CreateEvent failed! Nothing is going to work!");
#endif
}
SyncChannel::~SyncChannel()
{
MOZ_COUNT_DTOR(SyncChannel);
#ifdef OS_WIN
CloseHandle(mEvent);
#endif
}
// static