From e0e254548b6200d16bc3f4be3bd255b041a76532 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 21 May 2009 22:38:30 +0200 Subject: InformationManager Thread-safe gemacht --- src/madc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/madc.cpp') diff --git a/src/madc.cpp b/src/madc.cpp index 8499232..fd6b547 100644 --- a/src/madc.cpp +++ b/src/madc.cpp @@ -87,9 +87,7 @@ int main(int argc, char *argv[]) { std::cerr << "Receiving host list..." << std::flush; Client::InformationManager::get()->updateDaemonList(connection); - - while(Client::InformationManager::get()->isUpdating()) - usleep(100000); + Client::InformationManager::get()->waitWhileUpdating(); std::cerr << " done." << std::endl << std::endl; -- cgit v1.2.3