Lines Matching refs:once
312 * Call func once and only once
314 * @param once pointer to a heim_base_once_t
320 heim_base_once_f(heim_base_once_t *once, void *ctx, void (*func)(void *))
323 dispatch_once_f(once, ctx, func);
327 if (*once == 0) {
328 *once = 1;
332 *once = 2;
334 } else if (*once == 2) {
342 if (*once == 2)
412 static heim_base_once_t once = HEIM_BASE_ONCE_INIT;
416 heim_base_once_f(&once, NULL, init_ar_tls);