Date: Sat, 18 Mar 2000 18:59:31 -0800 From: Siew Sim <siewsim@prismedia.com> To: freebsd-stable@FreeBSD.ORG Subject: pthread_cond_wait always return EINVAL Message-ID: <38D44293.924C973E@prismedia.com>
next in thread | raw e-mail | index | archive | help
Hi,
I'm running 3.2. and I'm having problem to get pthread to work.
Here's part of my code:
{
....
assert(pthread_mutex_init(&gMutex, NULL) == 0);
assert(pthread_cond_init(&gCond, NULL) == 0);
assert(pthread_create(&myThread, NULL, ThreadMain, NULL) == 0);
...
}
void* ThreadMain(void* arg)
{
....
error = pthread_cond_wait(&gCond, &gMutex);
^
error always = EINVAL (22). This is my very first call that
uses gCond.
}
I printed out gCond, it looks good. Can someone tell me what I've
done wrong? Thanks!
Siew
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38D44293.924C973E>
