artutl.o:
avltree.o:
- 00000008 b bias.4380
- 00000000 B tree_error_message
- 00000004 B tree_error_noise
+ 00000008 b bias.4380 __thread
+ 00000000 B tree_error_message __thread
+ 00000004 B tree_error_noise __thread
+
+ OK. All state is thread-local now.
bkpt.o:
00000004 b One_Before
extern int strcmp_ci (const char *, const char *);
-const char * tree_error_message = 0;
-const char * tree_error_noise = 0;
+__thread const char * tree_error_message = 0;
+__thread const char * tree_error_noise = 0;
static void
tree_error (const char * message, const char * noise)
tree_node
tree_build (unsigned long high, const char ** names, unsigned long value)
{
- static long bias = 0;
+ static __thread long bias = 0;
if (high > 1)
{
tree_node tree;
#include "config.h"
-extern const char * tree_error_message;
-extern const char * tree_error_noise;
+extern __thread const char * tree_error_message;
+extern __thread const char * tree_error_noise;
typedef struct tree_node_s * tree_node;