Home
last modified time | relevance | path

Searched refs:_ssl_locks (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_ssl.c4045 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()
[all …]
/external/python/cpython3/Modules/
D_ssl.c5596 static PyThread_type_lock *_ssl_locks = NULL; variable
5629 if ((_ssl_locks == NULL) || in _ssl_thread_locking_function()
5634 PyThread_acquire_lock(_ssl_locks[n], 1); in _ssl_thread_locking_function()
5636 PyThread_release_lock(_ssl_locks[n]); in _ssl_thread_locking_function()
5644 if (_ssl_locks == NULL) { in _setup_ssl_threads()
5646 _ssl_locks = PyMem_Calloc(_ssl_locks_count, in _setup_ssl_threads()
5648 if (_ssl_locks == NULL) { in _setup_ssl_threads()
5653 _ssl_locks[i] = PyThread_allocate_lock(); in _setup_ssl_threads()
5654 if (_ssl_locks[i] == NULL) { in _setup_ssl_threads()
5657 PyThread_free_lock(_ssl_locks[j]); in _setup_ssl_threads()
[all …]