Menu

[2d617b]: / src / DummyThreads.cpp  Maximize  Restore  History

Download this file

23 lines (16 with data), 442 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");
}
}
}
#endif // LOG4CPP_HAVE_THREADING
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.