rem: for (i = 0; SemList[i] != NULL; i++) if (*SemList[i] == sem) { semthread[i] = SDL_ThreadID (); break; } #endif
context: SetSemaphore (Semaphore sem){	int i;	i = NativeSetSemaphore ((NativeSemaphore) sem);#ifdef DEBUG_TRACK_SEM	if (i != 0)		fprintf(stderr, "WARNING: SetSemaphore did not return 0, this could be bad!\n");	for (i = 0; SemList[i] != NULL; i++)		if (*SemList[i] == sem)		{			semthread[i] = SDL_ThreadID ();			break;		}#endif	return i;}