|
From: Bart V. A. <bar...@gm...> - 2009-07-23 19:28:59
|
On Thu, Jul 23, 2009 at 1:12 PM, Alexander Potapenko<gl...@go...> wrote: > I've tried the tests on Mac OS 10.5 (Darwin Kernel Version 9.7.0: Tue > Mar 31 22:52:17 PDT 2009) > Here are the results > > glider$ ./pth_inconsistent_cond_wait > pth_inconsistent_cond_wait.c:52 pthread_cond_timedwait(&s_cond, mutex, > &deadline) returned error code 22 (Invalid argument) > > this is a bit confusing. > > glider$ ./tc17_sembar > starting > done, result is 99, should be 88 > > this is expected, because sem_init is not implemented on Darwin, only > named semaphores are supported. Thanks for the help. After having replaced sem_init() by sem_open() in the pth_inconsistent_cond_wait test program, I still see the same puzzling error message: $ drd/tests/pth_inconsistent_cond_wait pth_inconsistent_cond_wait.c:77 pthread_cond_timedwait(&s_cond, mutex, &deadline) returned error code 22 (Invalid argument) Bart. |