| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ | 11 #ifndef WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ |
| 12 #define WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ | 12 #define WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/platform_thread.h" |
| 18 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 19 #include "webrtc/system_wrappers/include/thread_wrapper.h" | |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 class CriticalSectionWrapper; | 22 class CriticalSectionWrapper; |
| 23 class EventWrapper; | 23 class EventWrapper; |
| 24 } | 24 } |
| 25 | 25 |
| 26 //#define PLOT_TESTING | 26 //#define PLOT_TESTING |
| 27 | 27 |
| 28 #ifdef MATLAB | 28 #ifdef MATLAB |
| 29 | 29 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 MatlabPlot * NewPlot(MatlabPlot *newPlot); | 154 MatlabPlot * NewPlot(MatlabPlot *newPlot); |
| 155 void DeletePlot(MatlabPlot *plot); | 155 void DeletePlot(MatlabPlot *plot); |
| 156 | 156 |
| 157 private: | 157 private: |
| 158 static bool PlotThread(void *obj); | 158 static bool PlotThread(void *obj); |
| 159 | 159 |
| 160 std::vector<MatlabPlot *> _plots; | 160 std::vector<MatlabPlot *> _plots; |
| 161 webrtc::CriticalSectionWrapper *_critSect; | 161 webrtc::CriticalSectionWrapper *_critSect; |
| 162 webrtc::EventWrapper *_eventPtr; | 162 webrtc::EventWrapper *_eventPtr; |
| 163 rtc::scoped_ptr<webrtc::ThreadWrapper> _plotThread; | 163 rtc::scoped_ptr<webrtc::PlatformThread> _plotThread; |
| 164 bool _running; | 164 bool _running; |
| 165 int _numPlots; | 165 int _numPlots; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 #endif //MATLAB | 168 #endif //MATLAB |
| 169 | 169 |
| 170 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ | 170 #endif // WEBRTC_MODULES_RTP_RTCP_TEST_BWESTANDALONE_MATLABPLOT_H_ |
| OLD | NEW |