Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | /* |
michael@0 | 7 | ** prolock.c -- NSPR Ordered Lock |
michael@0 | 8 | ** |
michael@0 | 9 | ** Implement the API defined in prolock.h |
michael@0 | 10 | ** |
michael@0 | 11 | */ |
michael@0 | 12 | #include "prolock.h" |
michael@0 | 13 | #include "prlog.h" |
michael@0 | 14 | #include "prerror.h" |
michael@0 | 15 | |
michael@0 | 16 | PR_IMPLEMENT(PROrderedLock *) |
michael@0 | 17 | PR_CreateOrderedLock( |
michael@0 | 18 | PRInt32 order, |
michael@0 | 19 | const char *name |
michael@0 | 20 | ) |
michael@0 | 21 | { |
michael@0 | 22 | PR_ASSERT(!"Not implemented"); /* Not implemented yet */ |
michael@0 | 23 | PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
michael@0 | 24 | return NULL; |
michael@0 | 25 | } /* end PR_CreateOrderedLock() */ |
michael@0 | 26 | |
michael@0 | 27 | |
michael@0 | 28 | PR_IMPLEMENT(void) |
michael@0 | 29 | PR_DestroyOrderedLock( |
michael@0 | 30 | PROrderedLock *lock |
michael@0 | 31 | ) |
michael@0 | 32 | { |
michael@0 | 33 | PR_ASSERT(!"Not implemented"); /* Not implemented yet */ |
michael@0 | 34 | PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
michael@0 | 35 | } /* end PR_DestroyOrderedLock() */ |
michael@0 | 36 | |
michael@0 | 37 | |
michael@0 | 38 | PR_IMPLEMENT(void) |
michael@0 | 39 | PR_LockOrderedLock( |
michael@0 | 40 | PROrderedLock *lock |
michael@0 | 41 | ) |
michael@0 | 42 | { |
michael@0 | 43 | PR_ASSERT(!"Not implemented"); /* Not implemented yet */ |
michael@0 | 44 | PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
michael@0 | 45 | } /* end PR_LockOrderedLock() */ |
michael@0 | 46 | |
michael@0 | 47 | |
michael@0 | 48 | PR_IMPLEMENT(PRStatus) |
michael@0 | 49 | PR_UnlockOrderedLock( |
michael@0 | 50 | PROrderedLock *lock |
michael@0 | 51 | ) |
michael@0 | 52 | { |
michael@0 | 53 | PR_ASSERT(!"Not implemented"); /* Not implemented yet */ |
michael@0 | 54 | PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); |
michael@0 | 55 | return PR_FAILURE; |
michael@0 | 56 | } /* end PR_UnlockOrderedLock() */ |