| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |