Thanks to visit codestin.com
Credit goes to sourceforge.net

Menu

[31e5cd]: / src / DummyThreads.cpp  Maximize  Restore  History

Download this file

23 lines (16 with data), 486 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* 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");
}
} // namespace threading
} // namespace log4cpp
#endif // LOG4CPP_HAVE_THREADING