Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BoostThreads.hh

Go to the documentation of this file.
00001 /* 00002 * BoostThreads.hh 00003 * 00004 * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved. 00005 * Copyright 2002, Bastiaan Bakker. All rights reserved. 00006 * 00007 * See the COPYING file for the terms of usage and distribution. 00008 */ 00009 00010 #ifndef _LOG4CPP_THREADING_BOOSTTHREADS_HH 00011 #define _LOG4CPP_THREADING_BOOSTTHREADS_HH 00012 00013 #include <log4cpp/Portability.hh> 00014 #include <boost/thread/thread.hpp> 00015 #include <boost/thread/mutex.hpp> 00016 #include <boost/thread/tss.hpp> 00017 #include <stdio.h> 00018 #include <string> 00019 00020 namespace log4cpp { 00021 namespace threading { 00022 static std::string getThreadId() { 00023 char buffer[16]; 00024 sprintf(buffer, "not implemented"); 00025 return std::string(buffer); 00026 }; 00027 00028 typedef boost::mutex Mutex; 00029 typedef boost::scoped_lock<Mutex> ScopedLock; 00030 00031 typedef template<typename T> class boost::thread_specific_ptr 00032 ThreadLocalDataHolder; 00033 } 00034 } 00035 #endif

Generated on Fri Jun 4 21:26:08 2004 for log4cpp by doxygen 1.3.7