MSThreads.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 #include <stdio.h>
9 
10 #if defined(LOG4CPP_HAVE_THREADING) && defined(LOG4CPP_USE_MSTHREADS)
11 
12 namespace log4cpp {
13  namespace threading {
14 
15  std::string getThreadId() {
16  char buffer[16];
17  sprintf(buffer, "%lu", GetCurrentThreadId());
18  return std::string(buffer);
19  };
20  char* getThreadId(char* buffer) {
21  sprintf(buffer, "%lu", GetCurrentThreadId());
22  return buffer;
23  };
24  }
25 }
26 
27 #endif // LOG4CPP_HAVE_THREADING && LOG4CPP_USE_MSTHREADS
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