This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: robust pthread_mutex_t in shared memory


* Michal Vaško:

> I have a use-case of process-shared mutexes in shared memory. The
> memory is even remapped at times but never while the lock is held. I
> have encountered some strange behavior and while debugging I wrote a
> fairly simple program that I would like to ask for help with. I would
> also appreciate if someone could tell me (or point me to where it is
> documented) what are the restrictions when using mutexes this way such
> as whether the memory can be remapped while a lock in it is held
> (probably not possible for robust mutexes, what about the default
> ones?) or similar ones.

What do you mean by “remapped”?  munmap followed by another mmap from
the backing file, possibly resulting in a different address?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]