X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b25be06635768807f8f693286fa73bb2297bb06c..4388f060552cc537e71e957d32f35e9d75a61233:/icuSources/common/uinit.c diff --git a/icuSources/common/uinit.c b/icuSources/common/uinit.c index 530d2130..bdbf9102 100644 --- a/icuSources/common/uinit.c +++ b/icuSources/common/uinit.c @@ -1,7 +1,7 @@ /* ****************************************************************************** * * -* Copyright (C) 2001-2010, International Business Machines * +* Copyright (C) 2001-2011, International Business Machines * * Corporation and others. All Rights Reserved. * * * ****************************************************************************** @@ -19,40 +19,11 @@ #include "unicode/uclean.h" #include "cmemory.h" #include "icuplugimp.h" -#include "uassert.h" #include "ucln.h" -#include "ucln_cmn.h" #include "ucnv_io.h" #include "umutex.h" #include "utracimp.h" -static UBool gICUInitialized = FALSE; -static UMTX gICUInitMutex = NULL; - - -/************************************************ - The cleanup order is important in this function. - Please be sure that you have read ucln.h - ************************************************/ -U_CAPI void U_EXPORT2 -u_cleanup(void) -{ - UTRACE_ENTRY_OC(UTRACE_U_CLEANUP); - umtx_lock(NULL); /* Force a memory barrier, so that we are sure to see */ - umtx_unlock(NULL); /* all state left around by any other threads. */ - - ucln_lib_cleanup(); - - umtx_destroy(&gICUInitMutex); - umtx_cleanup(); - cmemory_cleanup(); /* undo any heap functions set by u_setMemoryFunctions(). */ - gICUInitialized = FALSE; - UTRACE_EXIT(); /* Must be before utrace_cleanup(), which turns off tracing. */ -/*#if U_ENABLE_TRACING*/ - utrace_cleanup(); -/*#endif*/ -} - /* * ICU Initialization Function. Need not be called. */