comparison Core/MultiThreading/Mutex.cpp @ 890:816dccaeb7cf

Support of kFreeBSD
author jodogne
date Mon, 16 Jun 2014 15:39:16 +0200
parents a811bdf8b8eb
children 1530ff8b8417
comparison
equal deleted inserted replaced
883:50106e80555a 890:816dccaeb7cf
35 35
36 #include "../OrthancException.h" 36 #include "../OrthancException.h"
37 37
38 #if defined(_WIN32) 38 #if defined(_WIN32)
39 #include <windows.h> 39 #include <windows.h>
40 #elif defined(__linux) 40 #elif defined(__linux) || defined(__FreeBSD_kernel__)
41 #include <pthread.h> 41 #include <pthread.h>
42 #else 42 #else
43 #error Support your platform here 43 #error Support your platform here
44 #endif 44 #endif
45 45
73 { 73 {
74 ::LeaveCriticalSection(&pimpl_->criticalSection_); 74 ::LeaveCriticalSection(&pimpl_->criticalSection_);
75 } 75 }
76 76
77 77
78 #elif defined(__linux) 78 #elif defined(__linux) || defined(__FreeBSD_kernel__)
79 79
80 struct Mutex::PImpl 80 struct Mutex::PImpl
81 { 81 {
82 pthread_mutex_t mutex_; 82 pthread_mutex_t mutex_;
83 }; 83 };