Backout changeset 46393019b650

test_capi is failing and the fix is not trivial, I prefer to revert
This commit is contained in:
Victor Stinner 2013-12-13 04:14:41 +01:00
parent 775632ba10
commit 441adb8c57
7 changed files with 30 additions and 24 deletions

View file

@ -627,6 +627,9 @@ int
PyThread_set_key_value(int key, void *value)
{
int fail;
void *oldValue = pthread_getspecific(key);
if (oldValue != NULL)
return 0;
fail = pthread_setspecific(key, value);
return fail ? -1 : 0;
}