comparison Core/MultiThreading/Mutex.cpp @ 937:1530ff8b8417

fix darwin build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Jun 2014 17:58:33 +0200
parents 816dccaeb7cf
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
935:9f32a3f8a347 937:1530ff8b8417
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) || defined(__FreeBSD_kernel__) 40 #elif defined(__linux) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
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) || defined(__FreeBSD_kernel__) 78 #elif defined(__linux) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
79 79
80 struct Mutex::PImpl 80 struct Mutex::PImpl
81 { 81 {
82 pthread_mutex_t mutex_; 82 pthread_mutex_t mutex_;
83 }; 83 };