aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-20 22:45:15 +0100
committerGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 00:36:53 +0100
commit2a36edfd86cc15829b113466845ccab759731793 (patch)
tree21cef3e088f5906df99f5d4832ed92df03723d12 /src/common/thread.h
parent13e6876463078ee0597b3677a26ccaa2a5ff8b35 (diff)
Common: Cleanup thread includes.
Diffstat (limited to 'src/common/thread.h')
-rw-r--r--src/common/thread.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index 7bc41949..8255ee6d 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -4,24 +4,12 @@
#pragma once
-#include "common/common_types.h"
-#include <cstdio>
-#include <cstring>
+#include <cstddef>
#include <thread>
#include <condition_variable>
#include <mutex>
-// This may not be defined outside _WIN32
-#ifndef _WIN32
-#ifndef INFINITE
-#define INFINITE 0xffffffff
-#endif
-
-//for gettimeofday and struct time(spec|val)
-#include <time.h>
-#include <sys/time.h>
-#include <unistd.h>
-#endif
+#include "common/common_types.h"
// Support for C++11's thread_local keyword was surprisingly spotty in compilers until very
// recently. Fortunately, thread local variables have been well supported for compilers for a while,