Author: Miguel A. Ballicora
Date: 14:52:19 09/25/02
Go up one level in this thread
On September 25, 2002 at 07:48:12, Vincent Diepeveen wrote:
>Hello,
>
>I'm looking to a quick alternative for the windows
>function WaitForSingleObject();
I think that you are looking for
pthread_join();
That is what I use and it works exactly the same.
I use this in windows:
static void engine_thread_wait(void)
{
WaitForSingleObject (Engine_ID, INFINITE);
}
And the equivalent in Linux:
static void engine_thread_wait(void)
{
void *p;
pthread_join (Engine_ID, &p);
}
Regards,
Miguel
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.