Skip to content
This repository was archived by the owner on Oct 31, 2020. It is now read-only.

Commit 527931c

Browse files
author
Michael Talyansky
committed
add _thread to statics in key.c
1 parent 9b7f5fa commit 527931c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

key.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
/*
4848
* Destructor table for per-thread private data
4949
*/
50-
static _st_destructor_t _st_destructors[ST_KEYS_MAX];
51-
static int key_max = 0;
50+
static __thread _st_destructor_t _st_destructors[ST_KEYS_MAX];
51+
static __thread int key_max = 0;
5252

5353

5454
/*

0 commit comments

Comments
 (0)