From: Emiliano M. <emi...@te...> - 2002-06-18 15:12:51
|
Hi: I've read log4ccp does not suppport multithreading, can i do something=20 like this to assure atomic access=BF=BF or it's very restrictive?? (or stupid) =20 void Category::_logUnconditionally(Priority::Value priority, const char* format, va_list arguments) throw() { OstringStream messageBuffer; =20 pthread_mutex_lock(writeMutex); messageBuffer.vform(format, arguments); _logUnconditionally2(priority, messageBuffer.str()); pthread_mutex_unlock(writeMutex); } =20 thanks in advance |