00001
00002
00003
00004
00005
00006
00007
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