• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/threads/

Lines Matching refs:lock_cs

127 static MPKMutex *lock_cs;
722 static HANDLE *lock_cs;
728 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(HANDLE));
731 lock_cs[i]=CreateMutex(NULL,FALSE,NULL);
744 CloseHandle(lock_cs[i]);
745 OPENSSL_free(lock_cs);
752 WaitForSingleObject(lock_cs[type],INFINITE);
756 ReleaseMutex(lock_cs[type]);
815 static mutex_t *lock_cs;
816 /*static rwlock_t *lock_cs; */
823 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(mutex_t));
828 /* rwlock_init(&(lock_cs[i]),USYNC_THREAD,NULL); */
829 mutex_init(&(lock_cs[i]),USYNC_THREAD,NULL);
846 /* rwlock_destroy(&(lock_cs[i])); */
847 mutex_destroy(&(lock_cs[i]));
850 OPENSSL_free(lock_cs);
875 rw_rdlock(&(lock_cs[type]));
877 rw_wrlock(&(lock_cs[type])); */
879 mutex_lock(&(lock_cs[type]));
884 /* rw_unlock(&(lock_cs[type])); */
885 mutex_unlock(&(lock_cs[type]));
931 static usema_t **lock_cs;
948 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(usema_t *));
951 lock_cs[i]=usnewsema(arena,1);
968 usdumpsema(lock_cs[i],stdout,buf);
969 usfreesema(lock_cs[i],arena);
971 OPENSSL_free(lock_cs);
979 uspsema(lock_cs[type]);
984 usvsema(lock_cs[type]);
1024 static pthread_mutex_t *lock_cs;
1031 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t));
1036 pthread_mutex_init(&(lock_cs[i]),NULL);
1051 pthread_mutex_destroy(&(lock_cs[i]));
1055 OPENSSL_free(lock_cs);
1078 pthread_mutex_lock(&(lock_cs[type]));
1083 pthread_mutex_unlock(&(lock_cs[type]));
1133 lock_cs=OPENSSL_malloc(CRYPTO_num_locks() * sizeof(MPKMutex));
1138 lock_cs[i]=MPKMutexAlloc("OpenSSL mutex");
1157 MPKMutexFree(lock_cs[i]);
1160 OPENSSL_free(lock_cs);
1172 MPKMutexLock(lock_cs[type]);
1176 MPKMutexUnlock(lock_cs[type]);