OLD | NEW |
---|---|
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ | 5 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ |
6 #define LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ | 6 #define LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ |
7 | 7 |
8 #include <pthread.h> | 8 #include <pthread.h> |
9 | 9 |
10 #include "utils/macros.h" | 10 #include "utils/macros.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 MountNode* node_; | 24 MountNode* node_; |
25 int mode_; | 25 int mode_; |
26 size_t offs_; | 26 size_t offs_; |
27 | 27 |
28 private: | 28 private: |
29 // May only be called by the KernelProxy when the Kernel's | 29 // May only be called by the KernelProxy when the Kernel's |
30 // lock is held. | 30 // lock is held. |
31 friend class KernelObject; | 31 friend class KernelObject; |
32 friend class KernelProxy; | 32 friend class KernelProxy; |
33 void Acquire() { RefObject::Acquire(); } | 33 void Acquire() { RefObject::Acquire(); } |
34 void Release() { RefObject::Release(); } | 34 bool Release() { return RefObject::Release(); } |
noelallen1
2012/08/09 18:26:57
I originally had this as bool, then realized I nev
binji
2012/08/09 19:39:23
Yes, see my other comment.
| |
35 DISALLOW_COPY_AND_ASSIGN(KernelHandle); | 35 DISALLOW_COPY_AND_ASSIGN(KernelHandle); |
36 }; | 36 }; |
37 | 37 |
38 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ | 38 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_HANDLE_H_ |
OLD | NEW |