attempted some thread improvements[?]
fixed moduleconf bug what
This commit is contained in:
@ -97,7 +97,7 @@ IThreadHandle *WinThreader::MakeThread(IThread *pThread, const ThreadParams *par
|
||||
|
||||
IEventSignal *WinThreader::MakeEventSignal()
|
||||
{
|
||||
HANDLE event = CreateEventA(NULL, FALSE, FALSE, NULL);
|
||||
HANDLE event = CreateEventA(NULL, TRUE, TRUE, NULL);
|
||||
|
||||
if (!event)
|
||||
return NULL;
|
||||
@ -275,6 +275,7 @@ WinThreader::WinEvent::~WinEvent()
|
||||
void WinThreader::WinEvent::Wait()
|
||||
{
|
||||
WaitForSingleObject(m_event, INFINITE);
|
||||
ResetEvent(m_event);
|
||||
}
|
||||
|
||||
void WinThreader::WinEvent::Signal()
|
||||
|
Reference in New Issue
Block a user