X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fpthreadwrapper%2Fmutex.cpp;h=aec65610e239589e2395c2b6bdeae984890f9384;hb=5f8a87e41beeda971d6a47a6c6b0555da00af978;hp=ca554b194cee7044b1d19fddc34af9a2ba7dfacf;hpb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;p=fms.git diff --git a/src/pthreadwrapper/mutex.cpp b/src/pthreadwrapper/mutex.cpp index ca554b1..aec6561 100644 --- a/src/pthreadwrapper/mutex.cpp +++ b/src/pthreadwrapper/mutex.cpp @@ -1,6 +1,10 @@ #include "../../include/pthreadwrapper/mutex.h" #include +#ifndef _WIN32 + #include +#endif + #ifdef XMEM #include #endif @@ -29,7 +33,7 @@ void Mutex::Acquire() throw(std::exception) // deadlock - throw exception if(rval==EDEADLK) { - throw std::exception("Mutex would deadlock!"); + throw DeadlockException(); } } }