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

Side by Side Diff: nspr/pr/src/misc/prolock.c

Issue 1019063003: Update to NSPR 4.10.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: README bump Created 5 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 unified diff | Download patch
« no previous file with comments | « nspr/pr/src/md/windows/w95io.c ('k') | nspr/pr/src/misc/prsystem.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public 2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 5
6 /* 6 /*
7 ** prolock.c -- NSPR Ordered Lock 7 ** prolock.c -- NSPR Ordered Lock
8 ** 8 **
9 ** Implement the API defined in prolock.h 9 ** Implement the API defined in prolock.h
10 ** 10 **
11 */ 11 */
12 #include "prolock.h" 12 #include "prolock.h"
13 #include "prlog.h" 13 #include "prlog.h"
14 #include "prerror.h" 14 #include "prerror.h"
15 15
16 PR_IMPLEMENT(PROrderedLock *) 16 PR_IMPLEMENT(PROrderedLock *)
17 PR_CreateOrderedLock( 17 PR_CreateOrderedLock(
18 PRInt32 order, 18 PRInt32 order,
19 const char *name 19 const char *name
20 ) 20 )
21 { 21 {
22 PR_ASSERT(!"Not implemented"); /* Not implemented yet */ 22 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
23 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); 23 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
24 return NULL; 24 return NULL;
25 } /* end PR_CreateOrderedLock() */ 25 } /* end PR_CreateOrderedLock() */
26 26
27 27
28 PR_IMPLEMENT(void) 28 PR_IMPLEMENT(void)
29 PR_DestroyOrderedLock( 29 PR_DestroyOrderedLock(
30 PROrderedLock *lock 30 PROrderedLock *lock
31 ) 31 )
32 { 32 {
33 PR_ASSERT(!"Not implemented"); /* Not implemented yet */ 33 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
34 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); 34 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
35 } /* end PR_DestroyOrderedLock() */ 35 } /* end PR_DestroyOrderedLock() */
36 36
37 37
38 PR_IMPLEMENT(void) 38 PR_IMPLEMENT(void)
39 PR_LockOrderedLock( 39 PR_LockOrderedLock(
40 PROrderedLock *lock 40 PROrderedLock *lock
41 ) 41 )
42 { 42 {
43 PR_ASSERT(!"Not implemented"); /* Not implemented yet */ 43 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
44 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); 44 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
45 } /* end PR_LockOrderedLock() */ 45 } /* end PR_LockOrderedLock() */
46 46
47 47
48 PR_IMPLEMENT(PRStatus) 48 PR_IMPLEMENT(PRStatus)
49 PR_UnlockOrderedLock( 49 PR_UnlockOrderedLock(
50 PROrderedLock *lock 50 PROrderedLock *lock
51 ) 51 )
52 { 52 {
53 PR_ASSERT(!"Not implemented"); /* Not implemented yet */ 53 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
54 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); 54 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
55 return PR_FAILURE; 55 return PR_FAILURE;
56 } /* end PR_UnlockOrderedLock() */ 56 } /* end PR_UnlockOrderedLock() */
OLDNEW
« no previous file with comments | « nspr/pr/src/md/windows/w95io.c ('k') | nspr/pr/src/misc/prsystem.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698