Beispiel #1
0
void PulseThread::WaitForComplete()
{
	if (mThreadingDisabled)
	{
		OnPulse();
	}
	else
	{
		mCompleteEvent.Wait();
	}

}
Beispiel #2
0
void PulseThread::OnRun()
{
	while (!IsCancelled())
	{
		mStartEvent.Wait();
		if (IsCancelled())
		{
			break;
		}
		OnPulse();
		mCompleteEvent.Set();
	}
}
Beispiel #3
0
int GAnonPipe::OnEvent(GMessage *Msg)
{
	switch (Msg->Msg)
	{
		case WM_TIMER:
		{
			OnPulse();
			break;
		}
	}

	return 0;
}