michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: ** prolock.c -- NSPR Ordered Lock michael@0: ** michael@0: ** Implement the API defined in prolock.h michael@0: ** michael@0: */ michael@0: #include "prolock.h" michael@0: #include "prlog.h" michael@0: #include "prerror.h" michael@0: michael@0: PR_IMPLEMENT(PROrderedLock *) michael@0: PR_CreateOrderedLock( michael@0: PRInt32 order, michael@0: const char *name michael@0: ) michael@0: { michael@0: PR_ASSERT(!"Not implemented"); /* Not implemented yet */ michael@0: PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); michael@0: return NULL; michael@0: } /* end PR_CreateOrderedLock() */ michael@0: michael@0: michael@0: PR_IMPLEMENT(void) michael@0: PR_DestroyOrderedLock( michael@0: PROrderedLock *lock michael@0: ) michael@0: { michael@0: PR_ASSERT(!"Not implemented"); /* Not implemented yet */ michael@0: PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); michael@0: } /* end PR_DestroyOrderedLock() */ michael@0: michael@0: michael@0: PR_IMPLEMENT(void) michael@0: PR_LockOrderedLock( michael@0: PROrderedLock *lock michael@0: ) michael@0: { michael@0: PR_ASSERT(!"Not implemented"); /* Not implemented yet */ michael@0: PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); michael@0: } /* end PR_LockOrderedLock() */ michael@0: michael@0: michael@0: PR_IMPLEMENT(PRStatus) michael@0: PR_UnlockOrderedLock( michael@0: PROrderedLock *lock michael@0: ) michael@0: { michael@0: PR_ASSERT(!"Not implemented"); /* Not implemented yet */ michael@0: PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0); michael@0: return PR_FAILURE; michael@0: } /* end PR_UnlockOrderedLock() */