OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "sandbox/src/win2k_threadpool.h" | 5 #include "sandbox/src/win2k_threadpool.h" |
6 | 6 |
7 #include "base/logging.h" | |
8 #include "sandbox/src/win_utils.h" | 7 #include "sandbox/src/win_utils.h" |
9 | 8 |
10 namespace sandbox { | 9 namespace sandbox { |
11 | 10 |
12 bool Win2kThreadPool::RegisterWait(const void* client, HANDLE waitable_object, | 11 bool Win2kThreadPool::RegisterWait(const void* client, HANDLE waitable_object, |
13 CrossCallIPCCallback callback, | 12 CrossCallIPCCallback callback, |
14 void* context) { | 13 void* context) { |
15 if (0 == client) { | 14 if (0 == client) { |
16 return false; | 15 return false; |
17 } | 16 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 55 } |
57 | 56 |
58 Win2kThreadPool::~Win2kThreadPool() { | 57 Win2kThreadPool::~Win2kThreadPool() { |
59 // Here we used to unregister all the pool wait handles. Now, following the | 58 // Here we used to unregister all the pool wait handles. Now, following the |
60 // rest of the code we avoid lengthy or blocking calls given that the process | 59 // rest of the code we avoid lengthy or blocking calls given that the process |
61 // is being torn down. | 60 // is being torn down. |
62 ::DeleteCriticalSection(&lock_); | 61 ::DeleteCriticalSection(&lock_); |
63 } | 62 } |
64 | 63 |
65 } // namespace sandbox | 64 } // namespace sandbox |
OLD | NEW |