Remove thread id from ThreadWrapper::Start().
Removes ThreadPosix::InitParams and a corresponding wait for an event. This unblocks ThreadPosix::Start which had to wait for thread scheduling for an event to trigger on the spawned thread, giving faster Start() calls. BUG=4413 R=tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/43699004 Cr-Commit-Position: refs/heads/master@{#8709} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8709 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -275,8 +275,7 @@ int MTRxTxTest(CmdArgs& args)
|
||||
|
||||
if (mainSenderThread != NULL)
|
||||
{
|
||||
unsigned int tid;
|
||||
mainSenderThread->Start(tid);
|
||||
mainSenderThread->Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -286,8 +285,7 @@ int MTRxTxTest(CmdArgs& args)
|
||||
|
||||
if (intSenderThread != NULL)
|
||||
{
|
||||
unsigned int tid;
|
||||
intSenderThread->Start(tid);
|
||||
intSenderThread->Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -303,8 +301,7 @@ int MTRxTxTest(CmdArgs& args)
|
||||
|
||||
if (processingThread != NULL)
|
||||
{
|
||||
unsigned int tid;
|
||||
processingThread->Start(tid);
|
||||
processingThread->Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -314,8 +311,7 @@ int MTRxTxTest(CmdArgs& args)
|
||||
|
||||
if (decodeThread != NULL)
|
||||
{
|
||||
unsigned int tid;
|
||||
decodeThread->Start(tid);
|
||||
decodeThread->Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -123,10 +123,9 @@ int RtpPlayMT(const CmdArgs& args) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
unsigned int dummy_thread_id;
|
||||
player_thread->Start(dummy_thread_id);
|
||||
processing_thread->Start(dummy_thread_id);
|
||||
decode_thread->Start(dummy_thread_id);
|
||||
player_thread->Start();
|
||||
processing_thread->Start();
|
||||
decode_thread->Start();
|
||||
|
||||
wait_event->Wait(kConfigMaxRuntimeMs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user