Lines Matching refs:type
91 static void irix_locking_callback(int mode, int type, char *file, int line);
92 static void solaris_locking_callback(int mode, int type, char *file,
94 static void win32_locking_callback(int mode, int type, char *file, int line);
95 static void pthreads_locking_callback(int mode, int type, char *file,
144 void win32_locking_callback(int mode, int type, char *file, int line)
147 WaitForSingleObject(lock_cs[type], INFINITE);
149 ReleaseMutex(lock_cs[type]);
209 void solaris_locking_callback(int mode, int type, char *file, int line)
215 (type & CRYPTO_READ) ? "r" : "w", file, line);
219 if (CRYPTO_LOCK_SSL_CERT == type)
225 mutex_lock(&(lock_cs[type]));
228 rw_rdlock(&(lock_cs[type]));
230 rw_wrlock(&(lock_cs[type]));
232 lock_count[type]++;
235 mutex_unlock(&(lock_cs[type]));
237 rw_unlock(&(lock_cs[type]));
301 void irix_locking_callback(int mode, int type, char *file, int line)
304 uspsema(lock_cs[type]);
306 usvsema(lock_cs[type]);
360 void pthreads_locking_callback(int mode, int type, char *file, int line)
366 (type & CRYPTO_READ) ? "r" : "w", file, line);
369 if (CRYPTO_LOCK_SSL_CERT == type)
374 pthread_mutex_lock(&(lock_cs[type]));
375 lock_count[type]++;
377 pthread_mutex_unlock(&(lock_cs[type]));