DummyThreads.cpp
Go to the documentation of this file.
00001 #include <log4cpp/threading/Threading.hh>
00002 
00003 #ifndef LOG4CPP_HAVE_THREADING
00004 
00005 namespace log4cpp {
00006     namespace threading {
00007 
00008         std::string getThreadId() {
00009             // more useful would be to return the PID.
00010             return std::string("thread1");
00011         }
00012 
00013         char* getThreadId(char* buffer) {
00014             // more useful would be to return the PID.
00015                         sprintf(buffer, "thread1");
00016             return buffer;
00017         }
00018 
00019     }
00020 }
00021 
00022 #endif // LOG4CPP_HAVE_THREADING


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Aug 14 2016 03:18:26