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

Unified Diff: webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc
diff --git a/webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc b/webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc
index 236ceae9370fe117c2aa276b7d20bfc1600e0d48..a48ad2e6e4dd55e703df4528814cfed2ba305a37 100644
--- a/webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc
+++ b/webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc
@@ -76,12 +76,12 @@ int32_t TestLoadGenerator::Start (const char *threadName)
_eventPtr = EventWrapper::Create();
- _genThread =
- PlatformThread::CreateThread(SenderThreadFunction, this, threadName);
+ _genThread.reset(
+ new rtc::PlatformThread(SenderThreadFunction, this, threadName));
_running = true;
_genThread->Start();
- _genThread->SetPriority(kRealtimePriority);
+ _genThread->SetPriority(rtc::kRealtimePriority);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698