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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_object.h

Issue 19717004: [NaCl SDK] Add nacl_io and sdk_util namespaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad copyright in mount_mem 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/kernel_object.h
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_object.h b/native_client_sdk/src/libraries/nacl_io/kernel_object.h
index 99143b02e4e1b4bd16189502eaca2f47f678db20..414d34985cd43031ef985fd878f4ca8df3c7ba98 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_object.h
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_object.h
@@ -19,6 +19,7 @@
#include "sdk_util/simple_lock.h"
+namespace nacl_io {
// KernelObject provides basic functionality for threadsafe access to kernel
// objects such as the CWD, mount points, file descriptors and file handles.
@@ -81,15 +82,17 @@ private:
MountMap_t mounts_;
// Lock to protect free_fds_ and handle_map_.
- SimpleLock handle_lock_;
+ sdk_util::SimpleLock handle_lock_;
// Lock to protect handle_map_.
- SimpleLock mount_lock_;
+ sdk_util::SimpleLock mount_lock_;
// Lock to protect cwd_.
- SimpleLock cwd_lock_;
+ sdk_util::SimpleLock cwd_lock_;
DISALLOW_COPY_AND_ASSIGN(KernelObject);
};
+} // namespace nacl_io
+
#endif // LIBRARIES_NACL_IO_KERNEL_OBJECT_H_
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc ('k') | native_client_sdk/src/libraries/nacl_io/kernel_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698