rem: ClearSemaphore (&GraphicsSem); TimeIn = SleepTask (TimeIn + FLASH_RATE);
add: ClearSemaphore (GraphicsSem); SleepThreadUntil (TimeIn + FLASH_RATE); TimeIn = GetTimeCounter ();
context: int flash_selection_func(void* blah){	DWORD TimeIn;		TimeIn = GetTimeCounter ();	for (;;)	{#define FLASH_RATE (ONE_SECOND / 8)		CONTEXT OldContext;		SetSemaphore (&GraphicsSem);		OldContext = SetContext (SpaceContext);		Deselect (pMeleeState->MeleeOption);		SetContext (OldContext);		ClearSemaphore (&GraphicsSem);		TimeIn = SleepTask (TimeIn + FLASH_RATE);		SetSemaphore (&GraphicsSem);		OldContext = SetContext (SpaceContext);		Select (pMeleeState->MeleeOption);		SetContext (OldContext);		ClearSemaphore (&GraphicsSem);		TimeIn = SleepTask (TimeIn + FLASH_RATE);	}	(void) blah;  /* Satisfying compiler (unused parameter) */		return(0);}