Boost logo

Boost Users :

Subject: [Boost-users] [boost::interprocess] named_recursive_mutex lock owner identification
From: Frank Bergemann (FBergemann_at_[hidden])
Date: 2014-08-13 03:29:06


I am using boost 1.47 on linux/solaris(/hpux).
Can you please tell me, how to find out the lock owner of a mutex (named_recursive_mutex) ?
(in case i can't equire the lock within a timeout).
In posix' pthread_mutex_t there is a
 int __owner;
which holds the thread id (gettid())
But i can't find it in boost::interprocess.
Ok. there might be different base implementations for mutex/threads/etc.
But is there a "boost ID", that can be logged by application using boost
which might be a linux/unix thread id, but maybe something else?
- many thanks!
best regards,
Frank

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