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

Unified Diff: src/shared/platform/nacl_sync.h

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/shared/platform/nacl_semaphore_test.c ('k') | src/shared/platform/nacl_sync_checked.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/platform/nacl_sync.h
===================================================================
--- src/shared/platform/nacl_sync.h (revision 5177)
+++ src/shared/platform/nacl_sync.h (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.
*/
/*
@@ -11,6 +11,7 @@
#ifndef NATIVE_CLIENT_SRC_SHARED_PLATFORM_NACL_SYNC_H_
#define NATIVE_CLIENT_SRC_SHARED_PLATFORM_NACL_SYNC_H_
+#include "native_client/src/include/nacl_compiler_annotations.h"
#include "native_client/src/include/nacl_base.h"
#include "native_client/src/trusted/service_runtime/include/machine/_types.h"
#include "native_client/src/trusted/service_runtime/include/sys/time.h"
@@ -41,37 +42,37 @@
NACL_SYNC_SEM_RANGE_ERROR
} NaClSyncStatus;
-int NaClMutexCtor(struct NaClMutex *mp); /* bool success/fail */
+int NaClMutexCtor(struct NaClMutex *mp) NACL_WUR; /* bool success/fail */
void NaClMutexDtor(struct NaClMutex *mp);
-NaClSyncStatus NaClMutexLock(struct NaClMutex *mp);
+NaClSyncStatus NaClMutexLock(struct NaClMutex *mp) NACL_WUR;
-NaClSyncStatus NaClMutexTryLock(struct NaClMutex *mp);
+NaClSyncStatus NaClMutexTryLock(struct NaClMutex *mp) NACL_WUR;
-NaClSyncStatus NaClMutexUnlock(struct NaClMutex *mp);
+NaClSyncStatus NaClMutexUnlock(struct NaClMutex *mp) NACL_WUR;
-int NaClCondVarCtor(struct NaClCondVar *cvp);
+int NaClCondVarCtor(struct NaClCondVar *cvp) NACL_WUR;
void NaClCondVarDtor(struct NaClCondVar *cvp);
-NaClSyncStatus NaClCondVarSignal(struct NaClCondVar *cvp);
+NaClSyncStatus NaClCondVarSignal(struct NaClCondVar *cvp) NACL_WUR;
-NaClSyncStatus NaClCondVarBroadcast(struct NaClCondVar *cvp);
+NaClSyncStatus NaClCondVarBroadcast(struct NaClCondVar *cvp) NACL_WUR;
NaClSyncStatus NaClCondVarWait(struct NaClCondVar *cvp,
- struct NaClMutex *mp);
+ struct NaClMutex *mp) NACL_WUR;
NaClSyncStatus NaClCondVarTimedWaitRelative(
struct NaClCondVar *cvp,
struct NaClMutex *mp,
- struct nacl_abi_timespec const *reltime);
+ struct nacl_abi_timespec const *reltime) NACL_WUR;
NaClSyncStatus NaClCondVarTimedWaitAbsolute(
struct NaClCondVar *cvp,
struct NaClMutex *mp,
- struct nacl_abi_timespec const *abstime);
+ struct nacl_abi_timespec const *abstime) NACL_WUR;
« no previous file with comments | « src/shared/platform/nacl_semaphore_test.c ('k') | src/shared/platform/nacl_sync_checked.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698