예제 #1
0
/* Restart one of the threads that are waiting on the condition variable */
int SDL_CondSignal(SDL_cond *cond)
{
	if (!cond)
	{
		SDL_SetError("Passed a NULL condition variable");
		return -1;
	}

	return LWP_CondSignal(cond->cond) == 0 ? 0 : -1;

}
예제 #2
0
파일: threads.c 프로젝트: DCurrent/openbor
int cond_signal(bor_cond *cond)
{
	return LWP_RETCODE(LWP_CondSignal(*cond));
}