ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
uclean.h
Go to the documentation of this file.
1 /*
2 ******************************************************************************
3 * *
4 * Copyright (C) 2001-2009, International Business Machines *
5 * Corporation and others. All Rights Reserved. *
6 * *
7 ******************************************************************************
8 * file name: uclean.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2001July05
14 * created by: George Rhoten
15 */
16 
17 #ifndef __UCLEAN_H__
18 #define __UCLEAN_H__
19 
20 #include "unicode/utypes.h"
52 U_STABLE void U_EXPORT2
53 u_init(UErrorCode *status);
54 
100 U_STABLE void U_EXPORT2
101 u_cleanup(void);
102 
103 
104 
105 
113 typedef void *UMTX;
114 
131 typedef void U_CALLCONV UMtxInitFn (const void *context, UMTX *mutex, UErrorCode* status);
132 
133 
143 typedef void U_CALLCONV UMtxFn (const void *context, UMTX *mutex);
144 
145 
165 U_STABLE void U_EXPORT2
166 u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock,
167  UErrorCode *status);
168 
169 
178 typedef int32_t U_CALLCONV UMtxAtomicFn(const void *context, int32_t *p);
179 
195 U_STABLE void U_EXPORT2
196 u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec,
197  UErrorCode *status);
198 
199 
200 
209 typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size);
218 typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size);
229 typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem);
230 
247 U_STABLE void U_EXPORT2
248 u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f,
249  UErrorCode *status);
250 
251 #endif