23 lines
442 B
C++
23 lines
442 B
C++
|
|
/*
|
||
|
|
* Copyright 2002, Log4cpp Project. All rights reserved.
|
||
|
|
*
|
||
|
|
* See the COPYING file for the terms of usage and distribution.
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include <log4cpp/threading/Threading.hh>
|
||
|
|
|
||
|
|
#ifndef LOG4CPP_HAVE_THREADING
|
||
|
|
|
||
|
|
namespace log4cpp {
|
||
|
|
namespace threading {
|
||
|
|
|
||
|
|
std::string getThreadId() {
|
||
|
|
// more useful would be to return the PID.
|
||
|
|
return std::string("thread1");
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // LOG4CPP_HAVE_THREADING
|