diff options
author | Mika Lindqvist <postmaster@raasu.org> | 2018-06-21 14:51:06 +0300 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2018-09-17 11:28:28 +0200 |
commit | 16b6cda67be0038327b416e5fa5c7243ed138e21 (patch) | |
tree | 423b2e08110fbd8b7811bba2b2230eddfb020eff /functable.c | |
parent | baddc82378c6fa0d1c18651522fc1cc2662e5c50 (diff) |
Make functable thread-local.
Diffstat (limited to 'functable.c')
-rw-r--r-- | functable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functable.c b/functable.c index d58ddbd..e0f0e40 100644 --- a/functable.c +++ b/functable.c @@ -54,7 +54,7 @@ ZLIB_INTERNAL uint32_t adler32_stub(uint32_t adler, const unsigned char *buf, si ZLIB_INTERNAL uint32_t crc32_stub(uint32_t crc, const unsigned char *buf, uint64_t len); /* functable init */ -ZLIB_INTERNAL struct functable_s functable = {fill_window_stub,insert_string_stub,adler32_stub,crc32_stub}; +ZLIB_INTERNAL __thread struct functable_s functable = {fill_window_stub,insert_string_stub,adler32_stub,crc32_stub}; /* stub functions */ |