Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
D_ssl.c25 do { if (_ssl_locks_count>0) { (save) = PyEval_SaveThread(); } } while (0)
27 do { if (_ssl_locks_count>0) { PyEval_RestoreThread(save); } } while (0)
260 static unsigned int _ssl_locks_count = 0; variable
4080 (n < 0) || ((unsigned)n >= _ssl_locks_count)) in _ssl_thread_locking_function()
4095 _ssl_locks_count = CRYPTO_num_locks(); in _setup_ssl_threads()
4096 _ssl_locks = PyMem_New(PyThread_type_lock, _ssl_locks_count); in _setup_ssl_threads()
4102 sizeof(PyThread_type_lock) * _ssl_locks_count); in _setup_ssl_threads()
4103 for (i = 0; i < _ssl_locks_count; i++) { in _setup_ssl_threads()
4189 _ssl_locks_count++; in init_ssl()
/external/python/cpython3/Modules/
D_ssl.c25 do { if (_ssl_locks_count>0) { (save) = PyEval_SaveThread(); } } while (0)
27 do { if (_ssl_locks_count>0) { PyEval_RestoreThread(save); } _PySSL_FIX_ERRNO; } while (0)
401 static unsigned int _ssl_locks_count = 0; variable
5924 (n < 0) || ((unsigned)n >= _ssl_locks_count)) in _ssl_thread_locking_function()
5939 _ssl_locks_count = CRYPTO_num_locks(); in _setup_ssl_threads()
5940 _ssl_locks = PyMem_Calloc(_ssl_locks_count, in _setup_ssl_threads()
5946 for (i = 0; i < _ssl_locks_count; i++) { in _setup_ssl_threads()
6050 _ssl_locks_count++; in PyInit__ssl()