Searched refs:_ssl_locks (Results 1 – 2 of 2) sorted by relevance
4045 static PyThread_type_lock *_ssl_locks = NULL; variable4079 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()[all …]
5890 static PyThread_type_lock *_ssl_locks = NULL; variable5923 if ((_ssl_locks == NULL) || in _ssl_thread_locking_function()5928 PyThread_acquire_lock(_ssl_locks[n], 1); in _ssl_thread_locking_function()5930 PyThread_release_lock(_ssl_locks[n]); in _ssl_thread_locking_function()5938 if (_ssl_locks == NULL) { in _setup_ssl_threads()5940 _ssl_locks = PyMem_Calloc(_ssl_locks_count, in _setup_ssl_threads()5942 if (_ssl_locks == NULL) { in _setup_ssl_threads()5947 _ssl_locks[i] = PyThread_allocate_lock(); in _setup_ssl_threads()5948 if (_ssl_locks[i] == NULL) { in _setup_ssl_threads()5951 PyThread_free_lock(_ssl_locks[j]); in _setup_ssl_threads()[all …]