
12 Sep
2005
12 Sep
'05
3:53 p.m.
Alexander Terekhov schrieb:
Your locking is way too strict (with two waiters on CV, you're blocking the second signal across context switch).
I already was suspecting something along this lines. Thank you for having it pointed out.
Your pthread_cond_destroy() doesn't conform to pthreads (you need to lock the gate sema to synchronize destruction with respect to exiting waiters).
Yes I know this. But the code sketchy at best yet. Do you think there would be a principal problem? I won't try this until I am confident the main idea is worth extending.
Uhmm, and what about timed waits and/or cancellation?
I planned to extend to use WaitForMultipleObjectEx with timeout != INFINITE and APC's to cancel it. Reasonably? Regards, Roland