Searched refs:threads (Results 1 - 25 of 198) sorted by relevance

12345678

/openbsd-current/gnu/usr.bin/perl/t/op/
H A Dthreads_create.pl0 threads->create( sub { } )->join;
H A Dthreads.t10 skip_all_if_miniperl("no dynamic loading on miniperl, no threads");
17 use threads;
21 fresh_perl_is(<<'EOI', 'ok', { }, 'delete() under threads');
22 use threads;
23 threads->create(sub { my %h=(1,2); delete $h{1}})->join for 1..2;
30 fresh_perl_is(<<'EOI', 'ok', { }, 'weaken ref under threads');
31 use threads;
38 threads->create(sub { 1 })->join for (1..1);
46 fresh_perl_is(<<'EOI', 'ok', { }, 'weaken ref #2 under threads');
50 use threads;
[all...]
/openbsd-current/regress/lib/libpthread/stdfiles/
H A DMakefile9 CLEANFILES+= ${PROG2} threads no-threads
15 threads: ${PROG}
16 ./${PROG} > threads
25 no-threads: ${PROG2}
26 ./${PROG2} > no-threads
30 diff: threads no-threads
31 diff -u threads no-threads
[all...]
/openbsd-current/gnu/usr.bin/perl/t/re/
H A Dregexp_qr_embed_thr.t7 skip_all_if_miniperl("no dynamic loading on miniperl, no threads");
8 require threads;
/openbsd-current/regress/lib/libc/asr/bin/threads/
H A DMakefile5 PROG= threads
6 SRCS+= threads.c
/openbsd-current/regress/misc/exceptions/
H A DMakefile1 SUBDIR+= simple simple2 libbar foo threads
/openbsd-current/gnu/usr.bin/perl/dist/Thread-Semaphore/examples/
H A Dsemaphore.pl6 use threads;
15 threads->create(sub {
/openbsd-current/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dboolean-thr.t8 skip_all => "This perl does not support threads";
13 use threads;
14 use threads::shared;
16 ok(threads->create( sub { SvIsBOOL($_[0]) }, !!0 )->join,
19 ok(SvIsBOOL(threads->create( sub { return !!0 } )->join),
24 ok(threads->create( sub { SvIsBOOL($var) } )->join,
34 ok(threads->create( sub { SvIsBOOL($sharedvar) } )->join,
H A Dkeyword_plugin_threads.t9 skip_all("keyword_plugin thread test requires threads");
14 fresh_perl_is( <<'----', <<'====', {}, "loading XS::APItest in threads works");
18 use threads;
24 threads->create(sub {
H A Dmy_cxt.t6 my $threads;
9 $threads = $Config{'useithreads'};
10 # must 'use threads' before 'use Test::More'
11 eval 'use threads' if $threads;
47 skip "No threads", 6 unless $threads;
48 threads->create(\&do_thread)->join;
/openbsd-current/gnu/usr.bin/perl/cpan/DB_File/t/
H A Ddb-threads.t24 # Check DBM back-ends do not destroy objects from then-spawned threads.
26 use_ok('threads');
32 unlink <threads*>;
34 my $db = tie %h, 'DB_File', 'threads', O_RDWR|O_CREAT, 0640;
38 ok(threads->create(
45 for (threads->list) {
49 pass("Tied object survived exiting threads");
53 unlink <threads*>;
/openbsd-current/gnu/usr.bin/perl/t/class/
H A Dthreads.t10 skip_all_if_miniperl("no dynamic loading on miniperl, no threads");
17 use threads;
25 my $ret = threads->create(sub {
35 threads->create(sub {
41 threads->create(sub {
/openbsd-current/gnu/llvm/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_thread.cpp49 pthread_t threads[kAlive] = {}; local
51 if (threads[i % kAlive])
52 pthread_join(threads[i % kAlive], 0);
53 pthread_create(&threads[i % kAlive], 0, thread_alot_func, 0);
56 pthread_join(threads[i], 0);
/openbsd-current/gnu/usr.bin/binutils/gdb/testsuite/gdb.mi/
H A Dgdb669.exp21 # command "info threads" and the MI command "-thread-list-ids"
22 # return different threads in the system.
46 # ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N"
49 {\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \
57 if {![regexp {thread-ids=\{(thread-id="[0-9]+"(,)?)*\}} $output threads]} {
58 fail "finding threads in MI output ($name)"
60 pass "finding threads in MI output ($name)"
62 # Make list of console threads
63 set start [expr {[string first \{ $threads] + 1}]
64 set end [expr {[string first \} $threads]
[all...]
H A Dmi-pthreads.exp49 # ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N"
52 {\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \
61 if {![regexp {thread-ids=\{(thread-id="[0-9]+"(,)?)*\}} $output threads]} {
62 fail "finding threads in MI output ($name)"
64 pass "finding threads in MI output ($name)"
66 # Make list of console threads
67 set start [expr {[string first \{ $threads] + 1}]
68 set end [expr {[string first \} $threads] - 1}]
69 set threads [string range $threads
[all...]
H A Dmi2-pthreads.exp49 # ^done,thread-ids=[thread-id="1",thread-id="2",...],number-of-threads="N"
52 {\^done,thread-ids={(thread-id="[0-9]+"(,)?)+},number-of-threads="[0-9]+"} \
61 if {![regexp {thread-ids=\{(thread-id="[0-9]+"(,)?)*\}} $output threads]} {
62 fail "finding threads in MI output ($name)"
64 pass "finding threads in MI output ($name)"
66 # Make list of console threads
67 set start [expr {[string first \{ $threads] + 1}]
68 set end [expr {[string first \} $threads] - 1}]
69 set threads [string range $threads
[all...]
/openbsd-current/gnu/usr.bin/perl/dist/Thread-Queue/examples/
H A Dcallback.pl3 # Simplified example illustrating event handling and callback threads
5 # Callback threads register their queues with the event handler thread.
13 use threads;
24 # Create callback threads
25 threads->create('CallBack', 'USR1', $regis_q)->detach();
26 threads->create('CallBack', 'USR2', $regis_q)->detach();
27 threads->create('CallBack', 'HUP', $regis_q)->detach();
28 threads->create('CallBack', 'ALRM', $regis_q)->detach();
31 threads->create('EventHandler', $regis_q, $event_q)->detach();
107 my $tid = threads
[all...]
H A Dqueue.pl6 use threads;
17 threads->create(sub {
/openbsd-current/gnu/usr.bin/binutils/gdb/testsuite/gdb.threads/
H A Dmanythreads.c43 pthread_t threads[256]; local
49 /* Create a ton of quick-executing threads, then wait for them to
55 pthread_create (&threads[j], &attr, thread_function,
61 pthread_join (threads[j], NULL);
H A Dthread-specific.c31 pthread_t threads[2]; local
36 res = pthread_create(&threads[0],
/openbsd-current/gnu/usr.bin/perl/ext/PerlIO-encoding/t/
H A Dthreads.t13 print "1..0 # Skip: no threads\n";
18 use threads;
27 my $thread = threads->create(sub { pass 'in thread'; return 1 });
/openbsd-current/regress/lib/libc/asr/bin/
H A DMakefile8 SUBDIR+= threads
/openbsd-current/gnu/usr.bin/perl/t/
H A Dthread_it.pl12 skip_all_if_miniperl("no dynamic loading on miniperl, no threads");
14 require threads;
35 my $curr = threads->create({
/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/
H A Dargs.t10 my @threads = expand(':threads');
24 is_deeply(translate(':default', ':void', ':io', ':void', ':threads'),
25 [':void', @io, ':void', @threads],
31 is_deeply(translate(':default', '!', ':io', '!', ':threads'),
32 ['!', @io, '!', @threads],
/openbsd-current/gnu/llvm/lldb/examples/python/
H A Doperating_system.py17 self.threads = None
20 self.threads = None # Will be an dictionary containing info for each thread
36 self.threads.append(thread_info)
41 if not self.threads:
52 # The usual value for this while threads are in memory is 'none'
59 self.threads = [{'tid': 0x111111111,
75 return self.threads

Completed in 284 milliseconds

12345678