]> git.ipfire.org Git - thirdparty/suricata.git/commit
threads: make thread local storage manadatory
authorVictor Julien <victor@inliniac.net>
Sun, 12 Apr 2020 12:03:24 +0000 (14:03 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 16 Apr 2020 12:37:34 +0000 (14:37 +0200)
commit3ba4afd40b3ff43b406cfd6ea7b13958644b46d7
treed5f4fa4831cdf423ad741de790ebe4bd3376f2e6
parent32cfd71f1a9326e6f6b2b280e3c458e767fba287
threads: make thread local storage manadatory

Support either the __thread GNUism or the C11 _Thread_local.

Use 'thread_local' to point to the one that is used. Convert existing
__thread user to 'thread_local'.

Remove non-thread-local code from the packet pool code.
13 files changed:
configure.ac
src/output-filestore.c
src/suricata.c
src/threads-profile.h
src/threads.h
src/tm-threads.c
src/tmqh-packetpool.c
src/util-profiling-keywords.c
src/util-profiling-locks.c
src/util-profiling-prefilter.c
src/util-profiling.c
src/util-profiling.h
src/util-time.c