Boost logo

Boost Users :

Subject: Re: [Boost-users] [interprocess] managed_shm->find call causes assertion
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-04-09 08:44:50


> If I remove the template and add a type the assert will not appear.
>
> I am confused ...

So am I. What does pthread_mutex_unlock return when failing? According
to POSIX it should be one of these:

The pthread_mutex_lock(), pthread_mutex_trylock(), and
pthread_mutex_unlock() functions may fail if:

[EINVAL]
     The value specified by mutex does not refer to an initialized mutex
object.

[EAGAIN]
     [XSI] [Option Start] The mutex could not be acquired because the
maximum number of recursive locks for mutex has been exceeded. [Option End]

The pthread_mutex_unlock() function may fail if:

[EPERM]
     The current thread does not own the mutex.

These functions shall not return an error code of [EINTR]

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net