Lines Matching refs:lock
83 static ossl_inline int ossl_obj_write_lock(int lock) in ossl_obj_write_lock() argument
85 if (!lock) in ossl_obj_write_lock()
92 static ossl_inline int ossl_obj_read_lock(int lock) in ossl_obj_read_lock() argument
94 if (!lock) in ossl_obj_read_lock()
101 static ossl_inline void ossl_obj_unlock(int lock) in ossl_obj_unlock() argument
103 if (lock) in ossl_obj_unlock()
263 static int ossl_obj_add_object(const ASN1_OBJECT *obj, int lock) in ossl_obj_add_object() argument
281 if (!ossl_obj_write_lock(lock)) { in ossl_obj_add_object()
318 ossl_obj_unlock(lock); in ossl_obj_add_object()
322 ossl_obj_unlock(lock); in ossl_obj_add_object()
386 static int ossl_obj_obj2nid(const ASN1_OBJECT *a, const int lock) in ossl_obj_obj2nid() argument
402 if (!ossl_obj_read_lock(lock)) { in ossl_obj_obj2nid()
413 ossl_obj_unlock(lock); in ossl_obj_obj2nid()