Lines Matching defs:lock_cs
110 static HANDLE *lock_cs;
116 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(HANDLE));
119 lock_cs[i]=CreateMutex(NULL,FALSE,NULL);
133 CloseHandle(lock_cs[i]);
134 OPENSSL_free(lock_cs);
141 WaitForSingleObject(lock_cs[type],INFINITE);
145 ReleaseMutex(lock_cs[type]);
156 static mutex_t *lock_cs;
158 static rwlock_t *lock_cs;
167 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(mutex_t));
169 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(rwlock_t));
176 mutex_init(&(lock_cs[i]),USYNC_THREAD,NULL);
178 rwlock_init(&(lock_cs[i]),USYNC_THREAD,NULL);
194 mutex_destroy(&(lock_cs[i]));
196 rwlock_destroy(&(lock_cs[i]));
199 OPENSSL_free(lock_cs);
221 mutex_lock(&(lock_cs[type]));
224 rw_rdlock(&(lock_cs[type]));
226 rw_wrlock(&(lock_cs[type]));
233 mutex_unlock(&(lock_cs[type]));
235 rw_unlock(&(lock_cs[type]));
253 static usema_t **lock_cs;
270 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(usema_t *));
273 lock_cs[i]=usnewsema(arena,1);
290 usdumpsema(lock_cs[i],stdout,buf);
291 usfreesema(lock_cs[i],arena);
293 OPENSSL_free(lock_cs);
300 uspsema(lock_cs[type]);
304 usvsema(lock_cs[type]);
320 static pthread_mutex_t *lock_cs;
327 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t));
332 pthread_mutex_init(&(lock_cs[i]),NULL);
346 pthread_mutex_destroy(&(lock_cs[i]));
348 OPENSSL_free(lock_cs);
369 pthread_mutex_lock(&(lock_cs[type]));
374 pthread_mutex_unlock(&(lock_cs[type]));