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

Side by Side Diff: src/shared/platform/nacl_interruptible_condvar.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, 7 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 /* 1 /*
2 * Copyright 2008 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can be
4 * be found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * NaCl Server Runtime interruptible condvar, based on nacl_sync 8 * NaCl Server Runtime interruptible condvar, based on nacl_sync
9 * interface. 9 * interface.
10 */ 10 */
11 11
12 #include "native_client/src/include/portability.h" 12 #include "native_client/src/include/portability.h"
13 #include "native_client/src/shared/platform/nacl_interruptible_condvar.h" 13 #include "native_client/src/shared/platform/nacl_interruptible_condvar.h"
14 #include "native_client/src/shared/platform/nacl_log.h" 14 #include "native_client/src/shared/platform/nacl_log.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 NaClSyncStatus NaClIntrCondVarBroadcast(struct NaClIntrCondVar *cp) { 79 NaClSyncStatus NaClIntrCondVarBroadcast(struct NaClIntrCondVar *cp) {
80 return NaClCondVarBroadcast(&cp->cv); 80 return NaClCondVarBroadcast(&cp->cv);
81 } 81 }
82 82
83 void NaClIntrCondVarIntr(struct NaClIntrCondVar *cp) { 83 void NaClIntrCondVarIntr(struct NaClIntrCondVar *cp) {
84 /* 84 /*
85 * NOTE: we assume that mutexes are interrupted first, so we will 85 * NOTE: we assume that mutexes are interrupted first, so we will
86 * fail to regain ownership of the mutex once the wait for cp->cv is 86 * fail to regain ownership of the mutex once the wait for cp->cv is
87 * completed (see NaClIntrCondVarWait above) 87 * completed (see NaClIntrCondVarWait above)
88 */ 88 */
89 NaClCondVarBroadcast(&cp->cv); 89 NaClXCondVarBroadcast(&cp->cv);
90 } 90 }
91 91
92 void NaClIntrCondVarReset(struct NaClIntrCondVar *cp) { 92 void NaClIntrCondVarReset(struct NaClIntrCondVar *cp) {
93 UNREFERENCED_PARAMETER(cp); 93 UNREFERENCED_PARAMETER(cp);
94 /* nothing to do here - we don't keep status */ 94 /* nothing to do here - we don't keep status */
95 return; 95 return;
96 } 96 }
OLDNEW
« no previous file with comments | « src/shared/platform/nacl_global_secure_random.c ('k') | src/shared/platform/nacl_interruptible_mutex.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698