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