Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
manzagop (departed)
2016/03/24 19:36:37
A few questions about form:
- What determines whet
Patrick Monette
2016/03/24 23:21:04
Lets not mess with components!
The _win suffix is
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_CHROME_WATCHER_WAIT_CHAIN_UTIL_WIN_H_ | |
| 6 #define CHROME_CHROME_WATCHER_WAIT_CHAIN_UTIL_WIN_H_ | |
| 7 | |
| 8 #include <windows.h> | |
| 9 #include <wct.h> | |
| 10 | |
| 11 #include <vector> | |
| 12 | |
| 13 // Get the wait chain for the |thread_id|. Also specifies if the |wait_chain| | |
| 14 // contains a deadlock.Returns true on success. | |
|
manzagop (departed)
2016/03/24 19:36:36
nit: missing whitespace
Patrick Monette
2016/03/24 23:21:04
Done.
| |
| 15 // | |
| 16 // From MSDN: A wait chain is an alternating sequence of threads and | |
| 17 // synchronization objects; each thread waits for the object that follows it, | |
| 18 // which is owned by the subsequent thread in the chain. | |
| 19 bool GetThreadWaitChain(DWORD thread_id, | |
| 20 std::vector<WAITCHAIN_NODE_INFO>* wait_chain, | |
| 21 bool* is_deadlock); | |
| 22 | |
| 23 // Returns a string that represent the node for a wait chain. | |
|
manzagop (departed)
2016/03/24 19:36:37
nit: represent*s*
Patrick Monette
2016/03/24 23:21:04
Done.
| |
| 24 std::wstring WaitChainNodeToString(const WAITCHAIN_NODE_INFO& node); | |
| 25 | |
| 26 #endif // CHROME_CHROME_WATCHER_WAIT_CHAIN_UTIL_WIN_H_ | |
| OLD | NEW |