Debian Codegraph @

nsprpub/pr/src/misc/prolock.c

raw
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
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/. */
5
6 /*
7 ** prolock.c -- NSPR Ordered Lock
8 **
9 ** Implement the API defined in prolock.h
10 **
11 */
12 #include "prolock.h"
13 #include "prlog.h"
14 #include "prerror.h"
15
16 PR_IMPLEMENT(PROrderedLock*)
17 PR_CreateOrderedLock(PRInt32 order, const char* name) {
18 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
19 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
20 return NULL;
21 } /* end PR_CreateOrderedLock() */
22
23 PR_IMPLEMENT(void)
24 PR_DestroyOrderedLock(PROrderedLock* lock) {
25 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
26 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
27 } /* end PR_DestroyOrderedLock() */
28
29 PR_IMPLEMENT(void)
30 PR_LockOrderedLock(PROrderedLock* lock) {
31 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
32 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
33 } /* end PR_LockOrderedLock() */
34
35 PR_IMPLEMENT(PRStatus)
36 PR_UnlockOrderedLock(PROrderedLock* lock) {
37 PR_NOT_REACHED("Not implemented"); /* Not implemented yet */
38 PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
39 return PR_FAILURE;
40 } /* end PR_UnlockOrderedLock() */