Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 213) sorted by relevance

123456789

/freebsd-10-stable/usr.bin/csup/
Dthreads.c51 struct threads *threads; member
57 struct threads { struct
66 static void threads_lock(struct threads *);
67 static void threads_unlock(struct threads *);
70 threads_lock(struct threads *tds) in threads_lock()
79 threads_unlock(struct threads *tds) in threads_unlock()
88 struct threads *
91 struct threads *tds; in threads_new()
93 tds = xmalloc(sizeof(struct threads)); in threads_new()
103 threads_create(struct threads *tds, void *(*start)(void *), void *data) in threads_create()
[all …]
Dthreads.h31 struct threads;
33 struct threads *threads_new(void);
34 void threads_create(struct threads *, void *(*)(void *), void *);
35 void *threads_wait(struct threads *);
36 void threads_free(struct threads *);
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread_dbg/
Dt_threads.c78 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local
90 (pthread_create(&threads[i], NULL, busyFunction1, NULL)); in ATF_TC_BODY()
139 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local
153 (pthread_create(&threads[i], NULL, busyFunction2, NULL)); in ATF_TC_BODY()
209 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local
223 (pthread_create(&threads[i], NULL, busyFunction3, NULL)); in ATF_TC_BODY()
282 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local
295 (pthread_create(&threads[i], NULL, busyFunction4, NULL)); in ATF_TC_BODY()
300 (pthread_setname_np(threads[i], "test_%d", (void*)i)); in ATF_TC_BODY()
363 pthread_t threads[MAX_THREADS]; in ATF_TC_BODY() local
[all …]
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/
Dt_getenv_thread.c150 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local
158 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_getenv_r, in ATF_TC_BODY()
163 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY()
175 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local
183 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_putenv, in ATF_TC_BODY()
188 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY()
200 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local
208 ATF_CHECK(pthread_create(&threads[i++], NULL, thread_setenv, in ATF_TC_BODY()
213 ATF_CHECK(pthread_join(threads[j], NULL) == 0); in ATF_TC_BODY()
225 pthread_t threads[THREADED_NUM_THREADS]; in ATF_TC_BODY() local
[all …]
/freebsd-10-stable/contrib/xz/src/liblzma/common/
Dstream_encoder_mt.c146 worker_thread *threads; member
425 mythread_sync(coder->threads[i].mutex) { in threads_stop()
426 coder->threads[i].state = THR_STOP; in threads_stop()
427 mythread_cond_signal(&coder->threads[i].cond); in threads_stop()
436 mythread_sync(coder->threads[i].mutex) { in threads_stop()
437 while (coder->threads[i].state != THR_IDLE) in threads_stop()
438 mythread_cond_wait(&coder->threads[i].cond, in threads_stop()
439 &coder->threads[i].mutex); in threads_stop()
453 mythread_sync(coder->threads[i].mutex) { in threads_end()
454 coder->threads[i].state = THR_EXIT; in threads_end()
[all …]
Doutqueue.c24 uint64_t buf_size_max, uint32_t threads) in get_options() argument
26 if (threads > LZMA_THREADS_MAX || buf_size_max > BUF_SIZE_MAX) in get_options()
34 *bufs_count = threads * 2; in get_options()
42 lzma_outq_memusage(uint64_t buf_size_max, uint32_t threads) in lzma_outq_memusage() argument
47 if (get_options(&bufs_alloc_size, &bufs_count, buf_size_max, threads) in lzma_outq_memusage()
58 uint64_t buf_size_max, uint32_t threads) in lzma_outq_init() argument
65 buf_size_max, threads)); in lzma_outq_init()
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Examples/
Dthreaded_example.txt4 Here we run a test program called "cputhread" that creates 4 busy threads
22 In the above output, we can see that cputhread has four busy threads with
24 each of these threads on the CPU between 17 and 28 times.
52 not be beyond our sample rate of 100. The distribution of threads on CPU
59 threads, however due to a coding problem (poor use of mutex locks) they
76 in total, however we are still on our 4 CPU server. Only two threads have
82 Now more of a fringe case. This version of cpuserial again creates 4 threads
101 So all threads are running, good. And with a total of 109, at some point
105 since all threads are CPU hungry we'd hope that more often they could
Dlockbyproc_example.txt12 The above output shows that threads belonging to sched, the kernel, spent
33 Here we can see threads belonging to fsflush have spent a total of 19.7 ms
36 the sum of the block times across all the threads. So it is possible that
37 many threads were blocked at the same time, eg, it could have been 19 threads
/freebsd-10-stable/contrib/unbound/libunbound/python/doc/examples/
Dexample2.rst4 Lookup from threads
8 In this example, three lookup threads are created which work in background.
32 threads = []
36 threads.append(thread)
38 for thread in threads:
/freebsd-10-stable/lib/libkse/test/
Dsem_d.c62 pthread_t threads[NTHREADS]; in main() local
106 pthread_create(&threads[i], NULL, entry, (void *) &sem_a); in main()
114 pthread_join(threads[i], NULL); in main()
118 pthread_create(&threads[i], NULL, entry, (void *) &sem_a); in main()
126 pthread_join(threads[i], NULL); in main()
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Java/
Dj_stat.d60 execs = threads = methods = objnew = cload = gc = exception = 0;
97 threads++;
132 execs / interval, threads / interval, methods / interval,
135 execs = threads = methods = oalloc = cload = gc = exception = 0;
/freebsd-10-stable/cddl/contrib/dtracetoolkit/Bin/
Dj_stat.d60 execs = threads = methods = objnew = cload = gc = exception = 0;
97 threads++;
132 execs / interval, threads / interval, methods / interval,
135 execs = threads = methods = oalloc = cload = gc = exception = 0;
/freebsd-10-stable/contrib/libarchive/libarchive/
Darchive_write_add_filter_xz.c103 uint32_t threads; member
155 data->threads = 1; in common_setup()
235 if (data->threads != 1) { in archive_compressor_xz_init_stream()
237 mt_options.threads = data->threads; in archive_compressor_xz_init_stream()
394 data->threads = (int)strtoul(value, &endptr, 10); in archive_compressor_xz_options()
396 data->threads = 1; in archive_compressor_xz_options()
399 if (data->threads == 0) { in archive_compressor_xz_options()
401 data->threads = lzma_cputhreads(); in archive_compressor_xz_options()
403 data->threads = 1; in archive_compressor_xz_options()
/freebsd-10-stable/contrib/ntp/sntp/libevent/
Devent_iocp.c190 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch_()
191 if (!port->threads) in event_iocp_port_launch_()
208 port->threads[i] = (HANDLE)th; in event_iocp_port_launch_()
218 if (port->threads) in event_iocp_port_launch_()
219 mm_free(port->threads); in event_iocp_port_launch_()
232 mm_free(port->threads); in event_iocp_port_unlock_and_free_()
/freebsd-10-stable/contrib/ntp/sntp/libevent/m4/
Dacx_pthread.m49 # This macro figures out how to build C programs using POSIX threads.
10 # It sets the PTHREAD_LIBS output variable to the threads library and
25 # If you are only building threads programs, you may wish to use
36 # ACTION-IF-FOUND is a list of shell commands to run if a threads
97 # etcetera environment variables, and if threads linking works using
115 # We must check for the threads library under a number of different
131 # none: in case threads are in libc; should be tried before -Kthread and
133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
[all …]
/freebsd-10-stable/contrib/unbound/
Dax_pthread.m411 # This macro figures out how to build C programs using POSIX threads. It
12 # sets the PTHREAD_LIBS output variable to the threads library and linker
25 # If you are only building threads programs, you may wish to use these
40 # ACTION-IF-FOUND is a list of shell commands to run if a threads library
98 # etcetera environment variables, and if threads linking works using
116 # We must check for the threads library under a number of different
132 # none: in case threads are in libc; should be tried before -Kthread and
134 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
135 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
137 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
[all …]
/freebsd-10-stable/sys/mips/rmi/
Dfmn.c85 } threads[XLR_NTHREADS]; member
307 td = mthd->threads[nt].thread; in msgring_process_fast_intr()
318 mthd->threads[nt].needed = 1; in msgring_process_fast_intr()
342 td = mthd->threads[tid].thread; in msgring_process()
362 atomic_store_rel_int(&mthd->threads[tid].needed, 0); in msgring_process()
373 if (mthd->threads[tid].needed) { in msgring_process()
404 mthd->threads[tid].thread = td; in create_msgring_thread()
/freebsd-10-stable/contrib/gdb/gdb/
Dgnu-nat.c173 struct proc *threads; /* A linked list of all threads in TASK. */ member
644 inf->threads = 0; in make_inf()
932 for (thread = inf->threads; thread; thread = thread->next) in inf_update_suspends()
961 struct proc *thread = inf->threads; in inf_tid_to_thread()
975 struct proc *thread = inf->threads; in inf_port_to_thread()
989 thread_array_t threads; in inf_validate_procs() local
997 inf->threads_up_to_date = inf->threads ? !inf->running : 0; in inf_validate_procs()
1001 error_t err = task_threads (task->port, &threads, &num_threads); in inf_validate_procs()
1025 struct proc *thread = inf->threads; in inf_validate_procs()
1037 if (thread->port == threads[i]) in inf_validate_procs()
[all …]
/freebsd-10-stable/contrib/subversion/subversion/svnserve/
Dsvnserve.c574 static apr_thread_pool_t *threads; variable
582 return apr_thread_pool_threads_count(threads) * 2 in is_busy()
583 > apr_thread_pool_thread_max_get(threads); in is_busy()
613 apr_thread_pool_push(threads, serve_thread, connection, 0, NULL); in serve_thread()
1247 status = apr_thread_pool_create(&threads, in sub_main()
1258 apr_thread_pool_idle_wait_set(threads, THREADPOOL_THREAD_IDLE_LIMIT); in sub_main()
1261 apr_thread_pool_threshold_set(threads, 0); in sub_main()
1265 threads = NULL; in sub_main()
1312 status = apr_thread_pool_push(threads, serve_thread, connection, in sub_main()
1363 if (threads) in main()
[all …]
/freebsd-10-stable/contrib/ntp/sntp/m4/
Dopenldap-thread-check.m427 OL_ARG_WITH(threads,[ --with-threads with threads],
39 dnl and threads are auto|yes|posix.
44 dnl If we do not find cc_r|xlc_r, disable threads
62 dnl no CC! don't allow --with-threads
64 AC_MSG_ERROR([--with-threads requires cc_r (or other suitable compiler) on AIX])
66 AC_MSG_WARN([disabling threads, no cc_r on AIX])
119 # consider threads found
153 dnl pthread_create() with -threads (OSF/1)
197 OL_PTHREAD_TRY([-threads], [ol_cv_pthread_threads])
557 dnl User thinks he can manually configure threads.
[all …]
/freebsd-10-stable/tools/tools/crypto/
Dcryptotest.c428 runtests(struct alg *alg, int count, int size, u_long cmd, int threads, int profile) in runtests() argument
445 region = mmap(NULL, threads * sizeof (struct timeval), in runtests()
464 if (threads > 1) { in runtests()
465 for (i = 0; i < threads; i++) in runtests()
476 for (i = 0; i < threads; i++) in runtests()
482 t /= threads; in runtests()
487 nops *= threads; in runtests()
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/
Dt_once.c105 pthread_t threads[NTHREADS]; in ATF_TC_BODY() local
113 PTHREAD_REQUIRE(pthread_create(&threads[i], NULL, once2_threadfunc, &id[i])); in ATF_TC_BODY()
117 PTHREAD_REQUIRE(pthread_join(threads[i], NULL)); in ATF_TC_BODY()
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/gdb/
Dt_regress.sh32 atf_test_case threads
75 atf_add_test_case threads
/freebsd-10-stable/tools/test/pthread_vfork/
Dpthread_vfork_test.c77 pthread_t threads[NUM_THREADS]; in main() local
93 rc = pthread_create(&threads[t], NULL, vfork_test, &t); in main()
/freebsd-10-stable/usr.sbin/faithd/test/
Dfaithd.rb148 threads = []
192 threads = []
211 threads[i] = Thread.start do
220 for i in threads

123456789