ICU 49.1.1  49.1.1
uclean.h
Go to the documentation of this file.
1 /*
2 ******************************************************************************
3 * Copyright (C) 2001-2011, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************
6 * file name: uclean.h
7 * encoding: US-ASCII
8 * tab size: 8 (not used)
9 * indentation:4
10 *
11 * created on: 2001July05
12 * created by: George Rhoten
13 */
14 
15 #ifndef __UCLEAN_H__
16 #define __UCLEAN_H__
17 
18 #include "unicode/utypes.h"
50 U_STABLE void U_EXPORT2
51 u_init(UErrorCode *status);
52 
53 #ifndef U_HIDE_SYSTEM_API
54 
99 U_STABLE void U_EXPORT2
100 u_cleanup(void);
101 
102 
103 
104 
112 typedef void *UMTX;
113 
130 typedef void U_CALLCONV UMtxInitFn (const void *context, UMTX *mutex, UErrorCode* status);
131 
132 
142 typedef void U_CALLCONV UMtxFn (const void *context, UMTX *mutex);
143 
144 
164 U_STABLE void U_EXPORT2
165 u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock,
166  UErrorCode *status);
167 
168 
177 typedef int32_t U_CALLCONV UMtxAtomicFn(const void *context, int32_t *p);
178 
194 U_STABLE void U_EXPORT2
195 u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec,
196  UErrorCode *status);
197 
198 
199 
208 typedef void *U_CALLCONV UMemAllocFn(const void *context, size_t size);
217 typedef void *U_CALLCONV UMemReallocFn(const void *context, void *mem, size_t size);
228 typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem);
229 
246 U_STABLE void U_EXPORT2
247 u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f,
248  UErrorCode *status);
249 #endif /* U_HIDE_SYSTEM_API */
250 
251 #endif