[Saga-devel] saga SVN commit 3324: /trunk/saga/saga/adaptors/utils/
amerzky at cct.lsu.edu
amerzky at cct.lsu.edu
Sat Jan 17 10:37:37 CST 2009
User: amerzky
Date: 2009/01/17 10:37 AM
Modified:
/trunk/saga/saga/adaptors/utils/
utils.cpp
Log:
don't optimize - C++ static initialization and threads don't go
along very well it seems
A
File Changes:
Directory: /trunk/saga/saga/adaptors/utils/
===========================================
File [modified]: utils.cpp
Delta lines: +2 -6
===================================================================
--- trunk/saga/saga/adaptors/utils/utils.cpp 2009-01-17 16:08:08 UTC (rev 3323)
+++ trunk/saga/saga/adaptors/utils/utils.cpp 2009-01-17 16:37:19 UTC (rev 3324)
@@ -177,14 +177,10 @@
// a '.' in its name.
std::vector <std::string> get_localhosts (void)
{
- // scoped lock, to protect the static variables
- boost::recursive_mutex mtx_;
- boost::recursive_mutex::scoped_lock lock (mtx_);
-
// optimization: build this list only once - we assume that host names
// do not change during the runtime of the SAGA application.
- static std::vector <std::string> localhosts;
- static bool have_localhosts = false;
+ std::vector <std::string> localhosts;
+ bool have_localhosts = false;
std::set <std::string> initial_names;
More information about the saga-devel
mailing list