OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "CCThreadImpl.h" | 6 #include "CCThreadImpl.h" |
7 | 7 |
8 #include "CCCompletionEvent.h" | 8 #include "CCCompletionEvent.h" |
9 #include <public/Platform.h> | 9 #include <public/Platform.h> |
10 #include <public/WebThread.h> | 10 #include <public/WebThread.h> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Get the threadId for the newly-created thread by running a task | 90 // Get the threadId for the newly-created thread by running a task |
91 // on that thread, blocking on the result. | 91 // on that thread, blocking on the result. |
92 m_threadID = currentThread(); | 92 m_threadID = currentThread(); |
93 CCCompletionEvent completion; | 93 CCCompletionEvent completion; |
94 m_thread->postTask(new GetThreadIDTask(&m_threadID, &completion)); | 94 m_thread->postTask(new GetThreadIDTask(&m_threadID, &completion)); |
95 completion.wait(); | 95 completion.wait(); |
96 } | 96 } |
97 | 97 |
98 } // namespace WebKit | 98 } // namespace WebKit |
OLD | NEW |