OLD | NEW |
1 // sigslot.h: Signal/Slot classes | 1 // sigslot.h: Signal/Slot classes |
2 // | 2 // |
3 // Written by Sarah Thompson (sarah@telergy.com) 2002. | 3 // Written by Sarah Thompson (sarah@telergy.com) 2002. |
4 // | 4 // |
5 // License: Public domain. You are free to use this code however you like, with | 5 // License: Public domain. You are free to use this code however you like, with |
6 // the proviso that the author takes on no responsibility or liability for any | 6 // the proviso that the author takes on no responsibility or liability for any |
7 // use. | 7 // use. |
8 | 8 |
9 #include "webrtc/base/sigslot.h" | 9 #include "webrtc/base/sigslot.h" |
10 | 10 |
11 namespace sigslot { | 11 namespace sigslot { |
12 | 12 |
13 #ifdef _SIGSLOT_HAS_POSIX_THREADS | 13 #ifdef _SIGSLOT_HAS_POSIX_THREADS |
14 | 14 |
15 pthread_mutex_t* multi_threaded_global::get_mutex() { | 15 pthread_mutex_t* multi_threaded_global::get_mutex() { |
16 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; | 16 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; |
17 return &g_mutex; | 17 return &g_mutex; |
18 } | 18 } |
19 | 19 |
20 #endif // _SIGSLOT_HAS_POSIX_THREADS | 20 #endif // _SIGSLOT_HAS_POSIX_THREADS |
21 | 21 |
22 } // namespace sigslot | 22 } // namespace sigslot |
OLD | NEW |