GrabBag/VrUtils/log4cpp/src/DummyThreads.cpp

23 lines
464 B
C++
Raw Normal View History

2025-07-23 01:35:14 +08:00
/*
* 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