Commit 86e550e5 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Add another assert to debug the threading failures

parent 23e7e565
...@@ -265,6 +265,7 @@ public: ...@@ -265,6 +265,7 @@ public:
int code = pthread_setspecific(pthread_key, s); int code = pthread_setspecific(pthread_key, s);
assert(code == 0); assert(code == 0);
assert(map.count(pthread_self()) == 0);
map[pthread_self()] = s; map[pthread_self()] = s;
} }
return &s->val; return &s->val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment