#include <pthread.h>
+#if __cplusplus < 201103L
+# define noexcept(a)
+#endif
+
namespace libtest
{
namespace thread
_err= pthread_mutex_init(&_mutex, NULL);
}
- ~Mutex()
+ ~Mutex() noexcept(false)
{
if ((_err= pthread_mutex_destroy(&_mutex)))
{
init();
}
- ~ScopedLock()
+ ~ScopedLock() noexcept(false)
{
int err;
if ((err= pthread_mutex_unlock(_mutex.handle())))
}
}
- ~Condition()
+ ~Condition() noexcept(false)
{
int err;
if ((err= pthread_cond_destroy(&_cond)))