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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_dev.cc

Issue 18644009: [NaCl SDK] Upate atomic ops in nacl_io (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/mount_dev.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_dev.cc b/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
index 99d8834ff480bd1baa8501c4d963c297a7659712..7d8aa3ef90254e3c3c42ca96d15088d55299f343 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
+++ b/native_client_sdk/src/libraries/nacl_io/mount_dev.cc
@@ -234,7 +234,7 @@ Error TtyNode::Write(size_t offs,
Error TtyNode::Read(size_t offs, void* buf, size_t count, int* out_bytes) {
AutoLock lock(&lock_);
while (input_buffer_.size() <= 0) {
- pthread_cond_wait(&is_readable_, &lock_);
+ pthread_cond_wait(&is_readable_, lock_);
}
// Copies data from the input buffer into buf.
@@ -363,7 +363,6 @@ Error MountDev::Access(const Path& path, int a_mode) {
Error MountDev::Open(const Path& path, int mode, ScopedMountNode* out_node) {
out_node->reset(NULL);
- AutoLock lock(&lock_);
// Don't allow creating any files.
if (mode & O_CREAT)

Powered by Google App Engine
This is Rietveld 408576698