diff options
author | Maria Matejka <mq@ucw.cz> | 2021-02-04 15:08:52 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-11-22 19:05:43 +0100 |
commit | b5061659d3cc011118024861c2f048e67affbd39 (patch) | |
tree | 6e31927baf828e11eec0876a990db6b4bda5ac5a /lib | |
parent | a845651bc50b75b2be41b4427e04857ce3c106a6 (diff) |
POSIX threads and thread-local storage is needed for concurrent execution
Diffstat (limited to 'lib')
-rw-r--r-- | lib/birdlib.h | 4 | ||||
-rw-r--r-- | lib/timer.c | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 2e642d38..dc8bd00f 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -77,10 +77,6 @@ static inline int u64_cmp(u64 i1, u64 i2) #define STATIC_ASSERT(EXP) _Static_assert(EXP, #EXP) #define STATIC_ASSERT_MSG(EXP,MSG) _Static_assert(EXP, MSG) -#ifndef HAVE_THREAD_LOCAL -#define _Thread_local -#endif - /* Microsecond time */ typedef s64 btime; diff --git a/lib/timer.c b/lib/timer.c index 381163d0..f978a0f3 100644 --- a/lib/timer.c +++ b/lib/timer.c @@ -40,8 +40,6 @@ struct timeloop main_timeloop; -#ifdef USE_PTHREADS - #include <pthread.h> /* Data accessed and modified from proto/bfd/io.c */ @@ -62,14 +60,6 @@ timeloop_init_current(void) void wakeup_kick_current(void); -#else - -/* Just use main timelooop */ -static inline struct timeloop * timeloop_current(void) { return &main_timeloop; } -static inline void timeloop_init_current(void) { } - -#endif - btime current_time(void) { |