nsprpub/pr/src/misc/prolock.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nsprpub/pr/src/misc/prolock.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/*
    1.10 +**  prolock.c -- NSPR Ordered Lock
    1.11 +** 
    1.12 +**  Implement the API defined in prolock.h
    1.13 +** 
    1.14 +*/
    1.15 +#include "prolock.h"
    1.16 +#include "prlog.h"
    1.17 +#include "prerror.h"
    1.18 +
    1.19 +PR_IMPLEMENT(PROrderedLock *) 
    1.20 +    PR_CreateOrderedLock( 
    1.21 +        PRInt32 order,
    1.22 +        const char *name
    1.23 +)
    1.24 +{
    1.25 +    PR_ASSERT(!"Not implemented"); /* Not implemented yet */
    1.26 +    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    1.27 +    return NULL;
    1.28 +} /*  end PR_CreateOrderedLock() */
    1.29 +
    1.30 +
    1.31 +PR_IMPLEMENT(void) 
    1.32 +    PR_DestroyOrderedLock( 
    1.33 +        PROrderedLock *lock 
    1.34 +)
    1.35 +{
    1.36 +    PR_ASSERT(!"Not implemented"); /* Not implemented yet */
    1.37 +    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    1.38 +} /*  end PR_DestroyOrderedLock() */
    1.39 +
    1.40 +
    1.41 +PR_IMPLEMENT(void) 
    1.42 +    PR_LockOrderedLock( 
    1.43 +        PROrderedLock *lock 
    1.44 +)
    1.45 +{
    1.46 +    PR_ASSERT(!"Not implemented"); /* Not implemented yet */
    1.47 +    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    1.48 +} /*  end PR_LockOrderedLock() */
    1.49 +
    1.50 +
    1.51 +PR_IMPLEMENT(PRStatus) 
    1.52 +    PR_UnlockOrderedLock( 
    1.53 +        PROrderedLock *lock 
    1.54 +)
    1.55 +{
    1.56 +    PR_ASSERT(!"Not implemented"); /* Not implemented yet */
    1.57 +    PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    1.58 +    return PR_FAILURE;
    1.59 +} /*  end PR_UnlockOrderedLock() */

mercurial