Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: webrtc/rtc_base/sigslot.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/rtc_base/signalthread_unittest.cc ('k') | webrtc/rtc_base/sigslot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // QUICK DOCUMENTATION 9 // QUICK DOCUMENTATION
10 // 10 //
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // 86 //
87 // This file has been modified such that has_slots and signalx do not have to be 87 // This file has been modified such that has_slots and signalx do not have to be
88 // using the same threading requirements. E.g. it is possible to connect a 88 // using the same threading requirements. E.g. it is possible to connect a
89 // has_slots<single_threaded> and signal0<multi_threaded_local> or 89 // has_slots<single_threaded> and signal0<multi_threaded_local> or
90 // has_slots<multi_threaded_local> and signal0<single_threaded>. 90 // has_slots<multi_threaded_local> and signal0<single_threaded>.
91 // If has_slots is single threaded the user must ensure that it is not trying 91 // If has_slots is single threaded the user must ensure that it is not trying
92 // to connect or disconnect to signalx concurrently or data race may occur. 92 // to connect or disconnect to signalx concurrently or data race may occur.
93 // If signalx is single threaded the user must ensure that disconnect, connect 93 // If signalx is single threaded the user must ensure that disconnect, connect
94 // or signal is not happening concurrently or data race may occur. 94 // or signal is not happening concurrently or data race may occur.
95 95
96 #ifndef WEBRTC_BASE_SIGSLOT_H__ 96 #ifndef WEBRTC_RTC_BASE_SIGSLOT_H_
97 #define WEBRTC_BASE_SIGSLOT_H__ 97 #define WEBRTC_RTC_BASE_SIGSLOT_H_
98 98
99 #include <stdlib.h> 99 #include <stdlib.h>
100 #include <cstring> 100 #include <cstring>
101 #include <list> 101 #include <list>
102 #include <set> 102 #include <set>
103 103
104 // On our copy of sigslot.h, we set single threading as default. 104 // On our copy of sigslot.h, we set single threading as default.
105 #define SIGSLOT_DEFAULT_MT_POLICY single_threaded 105 #define SIGSLOT_DEFAULT_MT_POLICY single_threaded
106 106
107 #if defined(SIGSLOT_PURE_ISO) || \ 107 #if defined(SIGSLOT_PURE_ISO) || \
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 typename A5, 637 typename A5,
638 typename A6, 638 typename A6,
639 typename A7, 639 typename A7,
640 typename A8, 640 typename A8,
641 typename mt_policy = SIGSLOT_DEFAULT_MT_POLICY> 641 typename mt_policy = SIGSLOT_DEFAULT_MT_POLICY>
642 using signal8 = 642 using signal8 =
643 signal_with_thread_policy<mt_policy, A1, A2, A3, A4, A5, A6, A7, A8>; 643 signal_with_thread_policy<mt_policy, A1, A2, A3, A4, A5, A6, A7, A8>;
644 644
645 } // namespace sigslot 645 } // namespace sigslot
646 646
647 #endif // WEBRTC_BASE_SIGSLOT_H__ 647 #endif // WEBRTC_RTC_BASE_SIGSLOT_H_
OLDNEW
« no previous file with comments | « webrtc/rtc_base/signalthread_unittest.cc ('k') | webrtc/rtc_base/sigslot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698