From: Emiliano M. <emi...@te...> - 2002-06-18 16:02:34
|
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) void Category::_logUnconditionally(Priority::Value priority, const char* format, va_list arguments) throw() { OstringStream messageBuffer; pthread_mutex_lock(writeMutex); messageBuffer.vform(format, arguments); _logUnconditionally2(priority, messageBuffer.str()); pthread_mutex_unlock(writeMutex); } =20 thanks in advance |