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

Unified Diff: src/trusted/service_runtime/fs/obj_proxy.c

Issue 6937003: modified nacl_sync.h to have NACL_WUR for all functions that return a (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « src/trusted/desc/nacl_desc_wrapper.cc ('k') | src/trusted/service_runtime/linux/x86/nacl_ldt.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/fs/obj_proxy.c
===================================================================
--- src/trusted/service_runtime/fs/obj_proxy.c (revision 5177)
+++ src/trusted/service_runtime/fs/obj_proxy.c (working copy)
@@ -1,7 +1,7 @@
/*
- * Copyright 2008 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
+ * Copyright (c) 2011 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*/
/*
@@ -243,7 +243,7 @@
struct NaClContainerHashTblIter iter;
uint8_t const *rv = NULL;
- NaClMutexLock(&self->mu);
+ NaClXMutexLock(&self->mu);
self->key->obj = obj;
(*self->obj_to_name->vtbl->Find)(self->obj_to_name,
self->key,
@@ -253,7 +253,7 @@
(*iter.base.vtbl->Star)((struct NaClContainerIter *) &iter));
rv = found->name;
}
- NaClMutexUnlock(&self->mu);
+ NaClXMutexUnlock(&self->mu);
return rv;
}
@@ -266,7 +266,7 @@
struct NaClContainerHashTblIter iter;
int rv = 0;
- NaClMutexLock(&self->mu);
+ NaClXMutexLock(&self->mu);
memcpy(self->key->name, name, self->name_bytes);
(*self->name_to_obj->vtbl->Find)(self->name_to_obj,
self->key,
@@ -281,7 +281,7 @@
#endif
rv = 1;
}
- NaClMutexUnlock(&self->mu);
+ NaClXMutexUnlock(&self->mu);
return rv;
}
@@ -324,10 +324,10 @@
entry2->name[0], entry2->name[1], entry2->name[2]);
#endif
- NaClMutexLock(&self->mu);
+ NaClXMutexLock(&self->mu);
(*self->obj_to_name->vtbl->Insert)(self->obj_to_name, entry);
(*self->name_to_obj->vtbl->Insert)(self->name_to_obj, entry2);
- NaClMutexUnlock(&self->mu);
+ NaClXMutexUnlock(&self->mu);
rv = entry->name;
cleanup:
« no previous file with comments | « src/trusted/desc/nacl_desc_wrapper.cc ('k') | src/trusted/service_runtime/linux/x86/nacl_ldt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698