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
I printed out gCond, it looks good. Can someone tell me what I've
done wrong? Thanks!
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message