MSThreads.cpp
Go to the documentation of this file.
00001 #include <log4cpp/threading/Threading.hh>
00002 #include <stdio.h>
00003 
00004 #if defined(LOG4CPP_HAVE_THREADING) && defined(LOG4CPP_USE_MSTHREADS)
00005 
00006 namespace log4cpp {
00007     namespace threading {
00008 
00009         std::string getThreadId() {
00010             char buffer[16];
00011             sprintf(buffer, "%lu", GetCurrentThreadId());
00012             return std::string(buffer);
00013         };
00014         char* getThreadId(char* buffer) {
00015             sprintf(buffer, "%lu", GetCurrentThreadId());
00016             return buffer;
00017         };
00018     }
00019 }
00020 
00021 #endif // LOG4CPP_HAVE_THREADING && LOG4CPP_USE_MSTHREADS


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung.
autogenerated on Thu Jan 2 2014 11:35:02