intl/icu/source/common/cmutex.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /*
michael@0 2 **********************************************************************
michael@0 3 * Copyright (C) 2013, International Business Machines
michael@0 4 * Corporation and others. All Rights Reserved.
michael@0 5 **********************************************************************
michael@0 6 *
michael@0 7 * File cmutex.h
michael@0 8 *
michael@0 9 * Minimal plain C declarations for ICU mutex functions.
michael@0 10 * This header provides a transition path for plain C files that
michael@0 11 * formerly included mutex.h, which is now a C++ only header.
michael@0 12 *
michael@0 13 * This header should not be used for new code.
michael@0 14 *
michael@0 15 * C++ files should include umutex.h, not this header.
michael@0 16 *
michael@0 17 */
michael@0 18
michael@0 19 #ifndef __CMUTEX_H__
michael@0 20 #define __CMUTEX_H__
michael@0 21
michael@0 22 typedef struct UMutex UMutex;
michael@0 23
michael@0 24
michael@0 25 /* Lock a mutex.
michael@0 26 * @param mutex The given mutex to be locked. Pass NULL to specify
michael@0 27 * the global ICU mutex. Recursive locks are an error
michael@0 28 * and may cause a deadlock on some platforms.
michael@0 29 */
michael@0 30 U_INTERNAL void U_EXPORT2 umtx_lock(UMutex* mutex);
michael@0 31
michael@0 32 /* Unlock a mutex.
michael@0 33 * @param mutex The given mutex to be unlocked. Pass NULL to specify
michael@0 34 * the global ICU mutex.
michael@0 35 */
michael@0 36 U_INTERNAL void U_EXPORT2 umtx_unlock (UMutex* mutex);
michael@0 37
michael@0 38 #endif
michael@0 39

mercurial