DummyThreads.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2002, Log4cpp Project. All rights reserved.
3  *
4  * See the COPYING file for the terms of usage and distribution.
5  */
6 
8 
9 #ifndef LOG4CPP_HAVE_THREADING
10 
11 namespace log4cpp {
12  namespace threading {
13 
14  std::string getThreadId() {
15  // more useful would be to return the PID.
16  return std::string("thread1");
17  }
18 
19  char* getThreadId(char* buffer) {
20  // more useful would be to return the PID.
21  sprintf(buffer, "thread1");
22  return buffer;
23  }
24 
25  }
26 }
27 
28 #endif // LOG4CPP_HAVE_THREADING
static std::string getThreadId()
Definition: BoostThreads.hh:22


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:10:00