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:
pbos@webrtc.org
2015-03-13 00:06:21 +00:00
parent e534086492
commit 86639737b8
59 changed files with 83 additions and 195 deletions

View File

@ -81,7 +81,7 @@ DWORD WINAPI ThreadWindows::StartThread(void* param) {
return 0;
}
bool ThreadWindows::Start(unsigned int& id) {
bool ThreadWindows::Start() {
DCHECK(main_thread_.CalledOnValidThread());
DCHECK(!thread_);
@ -98,8 +98,6 @@ bool ThreadWindows::Start(unsigned int& id) {
return false;
}
id = thread_id;
if (prio_ != kNormalPriority) {
int priority = THREAD_PRIORITY_NORMAL;
switch (prio_) {