mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Backout changeset 46393019b650
test_capi is failing and the fix is not trivial, I prefer to revert
This commit is contained in:
parent
775632ba10
commit
441adb8c57
7 changed files with 30 additions and 24 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue