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

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

Issue 18129008: Clean up locking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master Created 7 years, 5 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_IO_KERNEL_HANDLE_H_ 5 #ifndef LIBRARIES_NACL_IO_KERNEL_HANDLE_H_
6 #define LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ 6 #define LIBRARIES_NACL_IO_KERNEL_HANDLE_H_
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 9
10 #include "nacl_io/error.h" 10 #include "nacl_io/error.h"
(...skipping 16 matching lines...) Expand all
27 Error Init(int open_flags); 27 Error Init(int open_flags);
28 28
29 // Assumes |out_offset| is non-NULL. 29 // Assumes |out_offset| is non-NULL.
30 Error Seek(off_t offset, int whence, off_t* out_offset); 30 Error Seek(off_t offset, int whence, off_t* out_offset);
31 31
32 ScopedRef<Mount> mount_; 32 ScopedRef<Mount> mount_;
33 ScopedRef<MountNode> node_; 33 ScopedRef<MountNode> node_;
34 size_t offs_; 34 size_t offs_;
35 35
36 private: 36 private:
37 friend class KernelObject;
38 friend class KernelProxy; 37 friend class KernelProxy;
39 DISALLOW_COPY_AND_ASSIGN(KernelHandle); 38 DISALLOW_COPY_AND_ASSIGN(KernelHandle);
40 }; 39 };
41 40
42 typedef ScopedRef<KernelHandle> ScopedKernelHandle; 41 typedef ScopedRef<KernelHandle> ScopedKernelHandle;
43 42
44 #endif // LIBRARIES_NACL_IO_KERNEL_HANDLE_H_ 43 #endif // LIBRARIES_NACL_IO_KERNEL_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698