]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/mutex.h
ICU-400.42.tar.gz
[apple/icu.git] / icuSources / common / mutex.h
index db546bc2ffa364e5e474b8e269c09b8112bf520d..26aefbf86b58aedd58cafddc5796c85e9900ac1e 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 1997-2001, International Business Machines
+*   Copyright (C) 1997-2003, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
@@ -27,7 +27,7 @@
 U_NAMESPACE_BEGIN
 
 //----------------------------------------------------------------------------
-// Code within this library which accesses protected data
+// Code within that accesses shared static or global data should
 // should instantiate a Mutex object while doing so. You should make your own 
 // private mutex where possible.
 
@@ -45,7 +45,7 @@ U_NAMESPACE_BEGIN
 //
 // void Function(int arg1, int arg2)
 // {
-//    static Object* foo; // Shared read-write object
+//    static Object* foo;     // Shared read-write object
 //    Mutex mutex(&myMutex);  // or no args for the global lock
 //    foo->Method();
 //    // When 'mutex' goes out of scope and gets destroyed here, the lock is released