#include "../../include/pthreadwrapper/mutex.h"\r
#include <exception>\r
\r
+#ifndef _WIN32\r
+ #include <sys/errno.h>\r
+#endif\r
+\r
#ifdef XMEM\r
#include <xmem.h>\r
#endif\r
// deadlock - throw exception\r
if(rval==EDEADLK)\r
{\r
- throw std::exception("Mutex would deadlock!");\r
+ throw DeadlockException();\r
}\r
}\r
}\r