Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_handle.h

Issue 10825189: [NaCl SDK] Get nacl_mounts_tests building. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: windows fixes Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698