| /freebsd/crypto/openssl/crypto/thread/ |
| H A D | api.c | 30 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads) in OSSL_set_max_threads() argument 51 ret = tdata->max_threads; in OSSL_get_max_threads() 58 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads) in OSSL_set_max_threads() argument 67 tdata->max_threads = max_threads; in OSSL_set_max_threads()
|
| H A D | internal.c | 22 return tdata->max_threads - tdata->active_threads; in _ossl_get_avail_threads() 50 if (tdata == NULL || tdata->max_threads == 0) { in ossl_crypto_thread_start()
|
| /freebsd/crypto/openssl/demos/kdf/ |
| H A D | argon2.c | 111 uint64_t max_threads = OSSL_get_max_threads(library_context); in main() local 113 if (max_threads == 0) in main() 115 else if (max_threads < parallel_cost) in main() 116 threads = max_threads; in main()
|
| /freebsd/crypto/krb5/src/appl/gss-sample/ |
| H A D | gss-server.c | 573 static int max_threads = 1; variable 599 if (thread_count < max_threads) { in WaitAndIncrementThreadCounter() 622 if (thread_count == max_threads) in DecrementAndSignalThreadCounter() 653 if (max_threads > 1) in worker_bee() 688 max_threads = atoi(*argv); in main() 741 if (max_threads < 1) { in main() 743 max_threads = 1; in main() 746 if (max_threads > 1 && do_inetd) in main() 788 if (max_threads == 1) { in main()
|
| H A D | gss-client.c | 620 static int max_threads = 1; variable 646 if (thread_count < max_threads) { in WaitAndIncrementThreadCounter() 669 if (thread_count == max_threads) in DecrementAndSignalThreadCounter() 701 if (max_threads > 1) in worker_bee() 755 max_threads = atoi(*argv); in main() 806 if (max_threads < 1) { in main() 808 max_threads = 1; in main() 819 if (max_threads == 1) { in main() 837 assert(max_threads == 1); in main()
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_barrier.h | 95 size_t KMP_ALIGN_CACHE max_threads; // size of arrays in data structure 120 d->max_threads = 0; in allocate() 138 bool need_resize(size_t new_nthr) { return (new_nthr > max_threads); } 92 size_t KMP_ALIGN_CACHE max_threads; // size of arrays in data structure global() variable
|
| H A D | kmp_barrier.cpp | 129 KMP_DEBUG_ASSERT(nthr > max_threads); in resize() 132 max_threads = nthr * 2; in resize() 138 max_threads * sizeof(flags_s)); in resize() 140 flags[i] = (flags_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(flags_s)); in resize() 144 go = (go_s *)KMP_INTERNAL_REALLOC(go, max_threads * sizeof(go_s)); in resize() 146 go = (go_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(go_s)); in resize() 149 iter = (iter_s *)KMP_INTERNAL_REALLOC(iter, max_threads * sizeof(iter_s)); in resize() 151 iter = (iter_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(iter_s)); in resize() 155 (sleep_s *)KMP_INTERNAL_REALLOC(sleep, max_threads * sizeof(sleep_s)); in resize() 157 sleep = (sleep_s *)KMP_INTERNAL_MALLOC(max_threads * sizeof(sleep_s)); in resize() [all …]
|
| /freebsd/crypto/openssl/include/openssl/ |
| H A D | thread.h | 24 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads);
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | thread.h | 31 uint64_t max_threads; member
|
| /freebsd/cddl/compat/opensolaris/include/ |
| H A D | thread_pool.h | 47 extern tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_thread_registry.cpp | 107 ThreadRegistry::ThreadRegistry(ThreadContextFactory factory, u32 max_threads, in ThreadRegistry() argument 110 max_threads_(max_threads), in ThreadRegistry()
|
| H A D | sanitizer_thread_registry.h | 92 ThreadRegistry(ThreadContextFactory factory, u32 max_threads,
|
| /freebsd/sys/dev/acpica/Osd/ |
| H A D | OsdSchedule.c | 72 SYSCTL_INT(_debug_acpi, OID_AUTO, max_threads, CTLFLAG_RDTUN, &acpi_max_threads,
|
| /freebsd/crypto/openssl/doc/designs/ |
| H A D | thread-api.md | 42 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads);
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | CRYPTO_THREAD_run_once.pod | 38 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads);
|