Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bug in pthread_cond_timedwait
On Sat, Jun 28, 2008 at 12:23:52PM +0200, Arne H. Juul wrote:
> I'm running NetBSD-current at home, and been irritated for some
> time by various threaded applications aborting like this:
>
> Error detected by libpthread: Destroying condition variable in use.
> Detected by file "/usr/src/lib/libpthread/pthread_cond.c", line 95,
> function "pthread_cond_destroy".
>
> I finally decided to dig into this and figure out why.
> It turns out this is a but in pthread_cond_timedwait(); when it
> hits a timeout it doesn't clean up the association from condition
> variable to mutex so the condition variable thinks it's in use
> when it's really not.
>
> Anyone have a quick fix for this?
Fixed, please cvs up.
Thanks,
Andrew
Home |
Main Index |
Thread Index |
Old Index