Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / nsprpub / pr / src / misc / prolock.c
blobe2646e8dd8de797becd0f5ff96b3a9d41510607d
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/. */
6 /*
7 ** prolock.c -- NSPR Ordered Lock
8 **
9 ** Implement the API defined in prolock.h
12 #include "prolock.h"
13 #include "prlog.h"
14 #include "prerror.h"
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() */
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() */
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() */
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() */