kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 +0000 | [diff] [blame] | 1 | // sigslot.h: Signal/Slot classes |
| 2 | // |
| 3 | // Written by Sarah Thompson (sarah@telergy.com) 2002. |
| 4 | // |
| 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 |
| 7 | // use. |
| 8 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 9 | #include "rtc_base/sigslot.h" |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 +0000 | [diff] [blame] | 10 | |
| 11 | namespace sigslot { |
| 12 | |
| 13 | #ifdef _SIGSLOT_HAS_POSIX_THREADS |
| 14 | |
deadbeef | 8d517c4 | 2017-02-19 14:12:24 -0800 | [diff] [blame] | 15 | pthread_mutex_t* multi_threaded_global::get_mutex() { |
| 16 | static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; |
| 17 | return &g_mutex; |
kwiberg@webrtc.org | 67186fe | 2015-03-09 22:21:53 +0000 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | #endif // _SIGSLOT_HAS_POSIX_THREADS |
| 21 | |
deadbeef | 8d517c4 | 2017-02-19 14:12:24 -0800 | [diff] [blame] | 22 | } // namespace sigslot |