~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/common/mutex.cpp

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 **********************************************************************
3
 
 *   Copyright (C) 1997-2001, International Business Machines
4
 
 *   Corporation and others.  All Rights Reserved.
5
 
 **********************************************************************
6
 
*/
7
 
 
8
 
#include "umutex.h"
9
 
 
10
 
/* Initialize the global mutex only when we can use it. */
11
 
#if (ICU_USE_THREADS == 1)
12
 
 
13
 
static int GlobalMutexInitialize()
14
 
{
15
 
  umtx_init( NULL );
16
 
  return 0;
17
 
}
18
 
 
19
 
static int initializesGlobalMutex = GlobalMutexInitialize();
20
 
 
21
 
#endif /* ICU_USE_THREADS==1 */