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

	return LWP_CondBroadcast(cond->cond) == 0 ? 0 : -1;
}
예제 #2
0
파일: threads.c 프로젝트: DCurrent/openbor
int cond_broadcast(bor_cond *cond)
{
	return LWP_RETCODE(LWP_CondBroadcast(*cond));
}