Lines Matching refs:_ssl_locks
4045 static PyThread_type_lock *_ssl_locks = NULL; variable
4079 if ((_ssl_locks == NULL) || in _ssl_thread_locking_function()
4084 PyThread_acquire_lock(_ssl_locks[n], 1); in _ssl_thread_locking_function()
4086 PyThread_release_lock(_ssl_locks[n]); in _ssl_thread_locking_function()
4094 if (_ssl_locks == NULL) { in _setup_ssl_threads()
4096 _ssl_locks = PyMem_New(PyThread_type_lock, _ssl_locks_count); in _setup_ssl_threads()
4097 if (_ssl_locks == NULL) { in _setup_ssl_threads()
4101 memset(_ssl_locks, 0, in _setup_ssl_threads()
4104 _ssl_locks[i] = PyThread_allocate_lock(); in _setup_ssl_threads()
4105 if (_ssl_locks[i] == NULL) { in _setup_ssl_threads()
4108 PyThread_free_lock(_ssl_locks[j]); in _setup_ssl_threads()
4110 PyMem_Free(_ssl_locks); in _setup_ssl_threads()