need to implement default constructor
This commit is contained in:
parent
5ae444ff22
commit
bbbf001f72
2 changed files with 17 additions and 3 deletions
|
@ -126,7 +126,16 @@ class DXXAPI DefaultMutex
|
|||
{
|
||||
public:
|
||||
|
||||
DefaultMutex(bool recursive = false);
|
||||
/*!
|
||||
* Constructor for non recursive Mutex
|
||||
*/
|
||||
DefaultMutex();
|
||||
|
||||
/*!
|
||||
* Constructor
|
||||
* \param recursive Set if Mutex should be recursive or not.
|
||||
*/
|
||||
DefaultMutex(bool recursive);
|
||||
|
||||
~DefaultMutex();
|
||||
|
||||
|
|
|
@ -75,6 +75,11 @@ DefaultWatch::~DefaultWatch()
|
|||
_disp->_mutex_w.unlock();
|
||||
}
|
||||
|
||||
DefaultMutex::DefaultMutex()
|
||||
{
|
||||
pthread_mutex_init(&_mutex, NULL);
|
||||
}
|
||||
|
||||
DefaultMutex::DefaultMutex(bool recursive)
|
||||
{
|
||||
if (recursive)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue