Merge branch 'master' of git://gitorious.org/dbus-cplusplus/mainline
This commit is contained in:
commit
5ae444ff22
2 changed files with 11 additions and 3 deletions
|
@ -126,7 +126,7 @@ class DXXAPI DefaultMutex
|
|||
{
|
||||
public:
|
||||
|
||||
DefaultMutex();
|
||||
DefaultMutex(bool recursive = false);
|
||||
|
||||
~DefaultMutex();
|
||||
|
||||
|
|
|
@ -75,10 +75,18 @@ DefaultWatch::~DefaultWatch()
|
|||
_disp->_mutex_w.unlock();
|
||||
}
|
||||
|
||||
DefaultMutex::DefaultMutex()
|
||||
DefaultMutex::DefaultMutex(bool recursive)
|
||||
{
|
||||
if (recursive)
|
||||
{
|
||||
pthread_mutex_t recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
||||
_mutex = recmutex;
|
||||
}
|
||||
else
|
||||
{
|
||||
pthread_mutex_init(&_mutex, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
DefaultMutex::~DefaultMutex()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue