stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r576787 - /incubator/stdcxx/trunk/src/messages.cpp
Date Tue, 18 Sep 2007 09:07:09 GMT
Author: faridz
Date: Tue Sep 18 02:07:09 2007
New Revision: 576787

URL: http://svn.apache.org/viewvc?rev=576787&view=rev
Log:
2007-09-18 Farid Zaripov <Farid_Zaripov@epam.com>

	* messages.cpp (__rw_cat_open): Use _RWSTD_MT_CLASS_GUARD instead of
	_RWSTD_MT_STATIC_GUARD to synchronize access to global repository
	of open	catalogs.
	(__rw_get_message): Ditto.
	(__rw_get_locale): Ditto.
	(__rw_cat_close): Ditto.

Modified:
    incubator/stdcxx/trunk/src/messages.cpp

Modified: incubator/stdcxx/trunk/src/messages.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/messages.cpp?rev=576787&r1=576786&r2=576787&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/messages.cpp (original)
+++ incubator/stdcxx/trunk/src/messages.cpp Tue Sep 18 02:07:09 2007
@@ -213,7 +213,7 @@
 int
 __rw_cat_open (const _STD::string &cat_name, const _STD::locale &loc)
 {
-    _RWSTD_MT_STATIC_GUARD (__rw_open_cat_data);
+    _RWSTD_MT_CLASS_GUARD (__rw_open_cat_data);
 
     const nl_catd catd = catopen (cat_name.c_str (), NL_CAT_LOCALE);
     if (_RWSTD_BAD_CATD == catd)
@@ -239,7 +239,7 @@
     if (cat < 0)
         return 0;
 
-    _RWSTD_MT_STATIC_GUARD (__rw_open_cat_data);
+    _RWSTD_MT_CLASS_GUARD (__rw_open_cat_data);
 
     __rw_open_cat_data *const pcat_data = __rw_manage_cat_data (cat, 0);
 
@@ -264,7 +264,7 @@
 const _STD::locale&
 __rw_get_locale (int cat)
 {
-    _RWSTD_MT_STATIC_GUARD (__rw_open_cat_data);
+    _RWSTD_MT_CLASS_GUARD (__rw_open_cat_data);
 
     _RWSTD_ASSERT (0 <= cat);
     __rw_open_cat_data* const pcat_data = __rw_manage_cat_data (cat, 0);
@@ -279,7 +279,7 @@
 void
 __rw_cat_close (int cat)
 {
-    _RWSTD_MT_STATIC_GUARD (__rw_open_cat_data);
+    _RWSTD_MT_CLASS_GUARD (__rw_open_cat_data);
     
     __rw_open_cat_data* const pcat_data =
         cat < 0 ? 0 : __rw_manage_cat_data (cat, 0);



Mime
View raw message