On Fri, Oct 3, 2008 at 3:50 PM, amit khandelwalWas the assertion failure for pthread_mutex_lock(), or
<khandelwal.amit@gmail.com> wrote:
> I am getting an assertion in boost::mutex while using static mutex
> variables. Below is the stack trace for that.
>
> void boost::mutex::lock(): Assertion `!pthread_mutex_lock(&m)' failed.
>
pthread_mutex_destroy()? Your assertion message has the former, but
the back-trace indicates the latter.
Either way, the cause might be static initialization order. Do you
have a global object whose destructor makes use (directly, or
indirectly through any contained classes' destructors) of a mutex
which is also part of some global object?
--
Matthew L. Creech
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users