Home
last modified time | relevance | path

Searched refs:once (Results 1 – 25 of 618) sorted by relevance

12345678910>>...25

/freebsd-12-stable/contrib/gcc/
Dgthr-solaris.h51 int once; member
406 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument
411 if (once == 0 || func == 0) in __gthread_once()
414 if (once->once == 0) in __gthread_once()
416 int status = __gthrw_(mutex_lock) (&once->mutex); in __gthread_once()
419 if (once->once == 0) in __gthread_once()
422 once->once++; in __gthread_once()
424 __gthrw_(mutex_unlock) (&once->mutex); in __gthread_once()
Dgthr-win32.h428 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument
431 return __gthr_win32_once (once, func); in __gthread_once()
532 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument
536 else if (once == NULL || func == NULL) in __gthread_once()
539 if (! once->done) in __gthread_once()
541 if (InterlockedIncrement (&(once->started)) == 0) in __gthread_once()
544 once->done = TRUE; in __gthread_once()
553 while (! once->done) in __gthread_once()
Dgthr-rtems.h58 extern int rtems_gxx_once (__gthread_once_t *once, void (*func) (void));
85 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument
87 return rtems_gxx_once( once, func ); in __gthread_once()
Dgthr-nks.h284 __gthread_once (__gthread_once_t *once, void (*func) (void)) in __gthread_once() argument
286 if (__compare_and_swap (once, 0, 1)) in __gthread_once()
289 *once |= 2; in __gthread_once()
293 while (!(*once & 2)) in __gthread_once()
/freebsd-12-stable/contrib/gcc/config/i386/
Dgthr-win32.c74 __gthr_win32_once (__gthread_once_t *once, void (*func) (void)) in __gthr_win32_once() argument
76 if (once == NULL || func == NULL) in __gthr_win32_once()
79 if (! once->done) in __gthr_win32_once()
81 if (InterlockedIncrement (&(once->started)) == 0) in __gthr_win32_once()
84 once->done = TRUE; in __gthr_win32_once()
93 while (! once->done) in __gthr_win32_once()
/freebsd-12-stable/contrib/netbsd-tests/lib/libpthread/
Dt_once.c46 static pthread_once_t once = PTHREAD_ONCE_INIT; variable
69 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY()
70 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY()
89 PTHREAD_REQUIRE(pthread_once(&once, once2_ofunc)); in once2_threadfunc()
142 PTHREAD_REQUIRE(pthread_once(&once, once3_ofunc)); in once3_threadfunc()
183 PTHREAD_REQUIRE(pthread_once(&once, ofunc)); in ATF_TC_BODY()
/freebsd-12-stable/usr.bin/procstat/
Dprocstat_cs.c54 int once, twice, lastcpu, cpu; in procstat_cs() local
88 once = 0; in procstat_cs()
93 if (once == 0) { in procstat_cs()
96 once = 1; in procstat_cs()
109 if (once && twice) in procstat_cs()
/freebsd-12-stable/crypto/openssl/include/internal/
Dthread_once.h118 #define RUN_ONCE(once, init) \ argument
119 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
136 #define RUN_ONCE_ALT(once, initalt, init) \ argument
137 (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)
/freebsd-12-stable/contrib/googletest/googlemock/test/
Dgmock_output_test_golden.txt41 Expected: to be called once
54 Expected: to be called once
62 Expected: to be called once
69 Expected: to be called once
98 Expected: to be called once
99 Actual: called once - saturated and retired
105 Expected: to be called once
119 Expected: to be called once
126 Expected: to be called once
140 Expected: to be called once
[all …]
/freebsd-12-stable/lib/libsecureboot/
Dvets.c350 static int once = -1; in ve_trust_init() local
352 if (once >= 0) in ve_trust_init()
353 return (once); in ve_trust_init()
354 once = 0; /* to be sure */ in ve_trust_init()
368 once = (int) VEC_LEN(trust_anchors); in ve_trust_init()
370 once += openpgp_trust_init(); in ve_trust_init()
372 return (once); in ve_trust_init()
958 static int once = -1; in ve_self_tests() local
969 if (once >= 0) in ve_self_tests()
970 return (once); in ve_self_tests()
[all …]
/freebsd-12-stable/crypto/heimdal/base/
Dheimbase.c320 heim_base_once_f(heim_base_once_t *once, void *ctx, void (*func)(void *)) in heim_base_once_f() argument
323 dispatch_once_f(once, ctx, func); in heim_base_once_f()
327 if (*once == 0) { in heim_base_once_f()
328 *once = 1; in heim_base_once_f()
332 *once = 2; in heim_base_once_f()
334 } else if (*once == 2) { in heim_base_once_f()
342 if (*once == 2) in heim_base_once_f()
412 static heim_base_once_t once = HEIM_BASE_ONCE_INIT; in autorel_tls() local
416 heim_base_once_f(&once, NULL, init_ar_tls); in autorel_tls()
/freebsd-12-stable/lib/libsecureboot/openpgp/
Dopgp_key.c205 static int once = 0; in openpgp_trust_add() local
207 if (!once) { in openpgp_trust_add()
208 once = 1; in openpgp_trust_add()
354 static int once = -1; in openpgp_trust_init() local
362 if (once < 0) { in openpgp_trust_init()
363 once = 0; in openpgp_trust_init()
372 once++; in openpgp_trust_init()
378 return (once); in openpgp_trust_init()
/freebsd-12-stable/lib/libsecureboot/efi/
Defi_init.c42 static int once = 0; in ve_efi_init() local
44 if (once > 0) in ve_efi_init()
47 once = 1; in ve_efi_init()
/freebsd-12-stable/crypto/openssl/crypto/
Dthreads_none.c65 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) in CRYPTO_THREAD_run_once() argument
67 if (*once != 0) in CRYPTO_THREAD_run_once()
71 *once = 1; in CRYPTO_THREAD_run_once()
Dthreads_pthread.c116 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void)) in CRYPTO_THREAD_run_once() argument
118 if (pthread_once(once, init) != 0) in CRYPTO_THREAD_run_once()
/freebsd-12-stable/usr.bin/systat/
Dswap.c95 static int once = 0; in initswap() local
97 if (once) in initswap()
106 once = 1; in initswap()
/freebsd-12-stable/contrib/ntp/libntp/lib/isc/unix/
Dstrerror.c53 static isc_once_t once = ISC_ONCE_INIT; in isc__strerror() local
57 RUNTIME_CHECK(isc_once_do(&once, init_lock) == ISC_R_SUCCESS); in isc__strerror()
/freebsd-12-stable/crypto/openssl/doc/man3/
DCRYPTO_THREAD_run_once.pod15 int CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void));
41 The B<once> argument must be a pointer to a static object of type
45 exactly once initialization.
109 static CRYPTO_ONCE once = CRYPTO_ONCE_STATIC_INIT;
119 if (!CRYPTO_THREAD_run_once(&once, void init) || lock == NULL)
/freebsd-12-stable/contrib/ntp/libntp/lib/isc/
Drandom.c39 static isc_once_t once = ISC_ONCE_INIT; variable
60 RUNTIME_CHECK(isc_once_do(&once, initialize_rand) == ISC_R_SUCCESS); in initialize()
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/builtins/
Demutls.c124 static pthread_once_t once = PTHREAD_ONCE_INIT; in emutls_init_once() local
125 pthread_once(&once, emutls_init); in emutls_init_once()
208 static INIT_ONCE once; in emutls_init_once() local
209 InitOnceExecuteOnce(&once, emutls_init, NULL, NULL); in emutls_init_once()
/freebsd-12-stable/sys/contrib/zlib/
Dcrc32.c179 local void once OF((once_t *, void (*)(void)));
199 local void once(state, init) in once() function
237 local void once(state, init) in once() function
598 once(&made, make_crc_table); in get_crc_table()
638 once(&made, make_crc_table);
757 once(&made, make_crc_table);
1087 once(&made, make_crc_table);
1106 once(&made, make_crc_table);
/freebsd-12-stable/contrib/gcc/doc/
Dconfigterms.texi23 @command{configure} may (and once did) assume that the host you specify
57 The @code{libiberty} support library is built up to three times: once
58 for the host, once for the target (even if they are the same), and once
/freebsd-12-stable/usr.bin/cpuset/
Dcpuset.c223 int once; in printset() local
226 for (once = 0, bit = 0; bit < size; bit++) { in printset()
228 if (once == 0) { in printset()
230 once = 1; in printset()
/freebsd-12-stable/sys/kern/
Dvfs_init.c175 static int once; in vfs_register() local
180 if (!once) { in vfs_register()
182 once = 1; in vfs_register()
/freebsd-12-stable/contrib/libstdc++/libsupc++/
Dguard.cc59 static __gthread_once_t once = __GTHREAD_ONCE_INIT; in get_static_mutex() local
60 __gthread_once(&once, init); in get_static_mutex()

12345678910>>...25