apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mladen Turk <mt...@apache.org>
Subject Re: bug in apr/threadproc/win32/thread.c ?
Date Wed, 29 Dec 2004 07:36:09 GMT
dave@minksonic.net wrote:
> In apr_thread_exit() at line 137, the handle is closed, but not cleared.
> It seems there should be a "thd->td = NULL;" after the CloseHandle().
> I realize there should be no further calls with this thread after
> apr_thread_exit() is called, but I ran into a case in my code where the main
> thread would call apr_thread_detach() to cleanup children after telling them to
> exit via mutex protected variable, and the child thread may have already called
> apr_thread_exit().

IMO for such things you will need to use the
apr_thread_join rather then apr_thread_detach or set
the apr_threadattr_detach_set and then use


View raw message