Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 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 MOJO_EDK_SYSTEM_AWAKABLE_H_ | |
| 6 #define MOJO_EDK_SYSTEM_AWAKABLE_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include "mojo/public/c/system/types.h" | |
| 11 | |
| 12 namespace mojo { | |
| 13 namespace system { | |
| 14 | |
| 15 // |Awakable| is an interface that may be waited on |AwakableList|. | |
|
viettrungluu
2014/12/03 22:31:26
remove |AwakableList|
Hajime Morrita
2014/12/03 22:47:11
Done.
| |
| 16 class Awakable { | |
| 17 public: | |
| 18 // |Awake()| must satisfy the following contract: | |
| 19 // * As this is called from any thread, this must be thread-safe. | |
| 20 // * As this is called inside a lock, this must not call anything that takes | |
| 21 // "non-terminal" locks, i.e., those which are always safe to take.' | |
|
viettrungluu
2014/12/03 22:31:26
remove trailing '
Hajime Morrita
2014/12/03 22:47:11
Oops.
| |
| 22 virtual void Awake(MojoResult result, uintptr_t context) = 0; | |
| 23 }; | |
| 24 | |
| 25 } // namespace system | |
| 26 } // namespace mojo | |
| 27 | |
| 28 #endif // MOJO_EDK_SYSTEM_AWAKABLE_H_ | |
| OLD | NEW |