projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Type cleanups
[invirt/third/libt4.git]
/
tprintf.cc
diff --git
a/tprintf.cc
b/tprintf.cc
index
8f6c8a9
..
93a6070
100644
(file)
--- a/
tprintf.cc
+++ b/
tprintf.cc
@@
-1,16
+1,9
@@
-#include "mutex.h"
#include <sys/time.h>
#include <stdint.h>
#include "tprintf.h"
#include <sys/time.h>
#include <stdint.h>
#include "tprintf.h"
-uint64_t utime() {
- struct timeval tp;
- gettimeofday(&tp, NULL);
- return (tp.tv_usec + (uint64_t)tp.tv_sec * 1000000) % 1000000000;
-}
-
-mutex cerr_mutex;
-std::map<pthread_t, int> thread_name_map;
+std::mutex cerr_mutex;
+std::map<std::thread::id, int> thread_name_map;
int next_thread_num = 0;
std::map<void *, int> instance_name_map;
int next_instance_num = 0;
int next_thread_num = 0;
std::map<void *, int> instance_name_map;
int next_instance_num = 0;