Searched refs:qp_idx (Results 1 – 2 of 2) sorted by relevance
/openssl/crypto/ |
H A D | threads_win.c | 218 uint32_t qp_idx; in get_hold_current_qp() local 224 CRYPTO_atomic_load_int((int *)&lock->reader_idx, (int *)&qp_idx, in get_hold_current_qp() 226 CRYPTO_atomic_add64(&lock->qp_group[qp_idx].users, VAL_READER, &tmp64, in get_hold_current_qp() 230 if (qp_idx == tmp) in get_hold_current_qp() 232 CRYPTO_atomic_add64(&lock->qp_group[qp_idx].users, -VAL_READER, &tmp64, in get_hold_current_qp() 236 return &lock->qp_group[qp_idx]; in get_hold_current_qp()
|
H A D | threads_pthread.c | 372 uint32_t qp_idx; in get_hold_current_qp() local 388 qp_idx = ATOMIC_LOAD_N(uint32_t, &lock->reader_idx, __ATOMIC_ACQUIRE); in get_hold_current_qp() 397 ATOMIC_ADD_FETCH(&lock->qp_group[qp_idx].users, VAL_READER, in get_hold_current_qp() 401 if (qp_idx == ATOMIC_LOAD_N(uint32_t, &lock->reader_idx, in get_hold_current_qp() 411 ATOMIC_SUB_FETCH(&lock->qp_group[qp_idx].users, VAL_READER, in get_hold_current_qp() 415 return &lock->qp_group[qp_idx]; in get_hold_current_qp()
|
Completed in 9 milliseconds