2
******************************************************************************
4
* Copyright (C) 2001-2001, International Business Machines *
5
* Corporation and others. All Rights Reserved. *
7
******************************************************************************
8
* file name: ucln_cmn.c
10
* tab size: 8 (not used)
13
* created on: 2001July05
14
* created by: George Rhoten
17
#include "unicode/uclean.h"
22
static cleanupFunc *gCleanupFunctions[UCLN_COMMON] = {
29
ucln_registerCleanup(ECleanupLibraryType type,
32
if (UCLN_START < type && type < UCLN_COMMON)
34
gCleanupFunctions[type] = func;
42
ECleanupLibraryType libType = UCLN_START;
43
while (++libType < UCLN_COMMON)
45
if (gCleanupFunctions[libType])
47
gCleanupFunctions[libType]();
57
UnicodeConverter_cleanup(); /* <-- deprecated code */
65
* WARNING! Destroying the global mutex can cause synchronization
66
* problems. ICU must be reinitialized from a single thread
67
* before the library is used again. You never want two
68
* threads trying to initialize the global mutex at the same
69
* time. The global mutex is being destroyed so that heap and
70
* resource checkers don't complain. [grhoten]