Bug 545338 - RPCChannel should use events rather than thread messages for NotifyWokerThread. r=bent.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user