Searched refs:Thread (Results 1 - 25 of 279) sorted by relevance

1234567891011>>

/macosx-10.9.5/ruby-104/ruby/benchmark/
H A Dbm_vm_thread_alive_check1.rb2 t = Thread.new{}
4 Thread.pass
H A Dbm_vm_thread_pass_flood.rb2 Thread.new{loop{Thread.pass}}
H A Dbm_vm_thread_create_join.rb4 Thread.new{
H A Dbm_vm_thread_pass.rb8 Thread.new{
10 Thread.pass
H A Dbm_vm_thread_pipe.rb6 [Thread.new{
11 }, Thread.new{
H A Dbm_vm_thread_mutex1.rb9 Thread.new{
H A Dbm_vm_thread_mutex2.rb9 Thread.new{
/macosx-10.9.5/ruby-104/ruby/test/ruby/
H A Dtest_threadgroup.rb8 Thread.new{
9 thgrp.add(Thread.current)
10 assert_equal(thgrp, Thread.new{sleep 1}.group)
17 t = Thread.new{1}
18 Thread.new{
19 thgrp.add(Thread.current)
22 Thread.new{1}.join
28 ThreadGroup.new.add Thread.current
38 t = Thread.new{1}
39 Thread
[all...]
H A Dtest_thread.rb7 class Thread < ::Thread class in class:TestThread
17 Thread::Threads.clear
21 Thread::Threads.each do |t|
31 assert_equal Thread.main, Thread.current
33 Thread.current.thread_variable_set :foo, "bar"
36 Fiber.yield [Thread.current, Thread.current.thread_variable_get(:foo)]
39 assert_equal Thread
[all...]
H A Dtest_flip.rb26 th = Thread.new {
28 Thread.pass while a
33 Thread.pass until a
/macosx-10.9.5/ruby-104/ruby/ext/fiddle/lib/
H A Dfiddle.rb7 # Returns the last win32 +Error+ of the current executing +Thread+ or nil
10 Thread.current[:__FIDDLE_WIN32_LAST_ERROR__]
13 # Sets the last win32 +Error+ of the current executing +Thread+ to +error+
15 Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] = error
19 # Returns the last +Error+ of the current executing +Thread+ or nil if none
21 Thread.current[:__FIDDLE_LAST_ERROR__]
24 # Sets the last +Error+ of the current executing +Thread+ to +error+
26 Thread.current[:__DL2_LAST_ERROR__] = error
27 Thread.current[:__FIDDLE_LAST_ERROR__] = error
/macosx-10.9.5/ruby-104/ruby/
H A Dprelude.rb1 class Thread class
5 # Thread.exclusive { block } => obj
7 # Wraps a block in Thread.critical, restoring the original value
/macosx-10.9.5/ruby-104/ruby/bootstraptest/
H A Dtest_thread.rb0 # Thread and Fiber
4 Thread.new{
9 Thread.new{
16 Thread.new{
27 Thread.new{
37 Thread.new{
46 t = Thread.new{}
48 Thread.pass
54 Thread.new{loop{Thread
[all...]
/macosx-10.9.5/ruby-104/ruby/sample/drb/
H A Dsimpletuple.rb18 Thread.critical = true
29 Thread.critical = false
34 Thread.critical = true
40 @waiting[key].push Thread.current
41 Thread.stop
48 Thread.critical = false
59 Thread.start {
70 Thread.start {
/macosx-10.9.5/JavaScriptCore-7537.78.1/heap/
H A DMachineStackMarker.h48 class Thread;
53 void gatherFromOtherThread(ConservativeRoots&, Thread*);
56 Thread* m_registeredThreads;
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dsync.rb40 unless defined? Thread
41 raise "Thread not available for this ruby interpreter"
60 Message = "Thread(%s) not locked."
138 Thread.handle_interrupt(StandardError => :on_blocking) do
145 if sync_sh_locker[Thread.current]
146 sync_upgrade_waiting.push [Thread.current, sync_sh_locker[Thread.current]]
147 sync_sh_locker.delete(Thread.current)
149 unless sync_waiting.include?(Thread.current) || sync_upgrade_waiting.reverse_each.any?{|w| w.first == Thread
[all...]
H A Dmonitor.rb34 # Thread.start do
168 if @mon_owner != Thread.current
172 @mon_owner = Thread.current
184 if @mon_owner != Thread.current
186 @mon_owner = Thread.current
245 if @mon_owner != Thread.current
251 @mon_owner = Thread.current
/macosx-10.9.5/RubyCocoa-80/RubyCocoa/sample/Scripts/
H A Dsndplay2.rb11 Thread.start { OSX::NSRunLoop.currentRunLoop.run }
16 thr = Thread.start do
/macosx-10.9.5/ruby-104/ruby/test/io/nonblock/
H A Dtest_flush.rb27 Thread.new {
28 Thread.pass
31 t = Thread.new {
32 while (Thread.pass; s = r.read(4096))
/macosx-10.9.5/ruby-104/ruby/test/thread/
H A Dtest_queue.rb20 Thread.new {
27 Thread.new {
61 t1 = Thread.new { q.pop }
69 t1 = Thread.new { q.pop }
78 t1 = Thread.new { q.push(2) }
96 th = Thread.start {
117 t1 = Thread.new do
121 t2 = Thread.new do
125 t3 = Thread.new do
126 Thread
[all...]
/macosx-10.9.5/ruby-104/ruby/sample/
H A Ddualstack-httpd.rb25 threads[i] = Thread.start do # Thread.start cannot be used here!
27 t = Thread.current
31 Thread.start do
32 STDERR.print "socket #{myname} accepted, thread ", Thread.current, "\n"
47 STDERR.print "socket #{myname} processed, thread ", Thread.current, " terminating\n"
/macosx-10.9.5/ruby-104/ruby/test/monitor/
H A Dtest_monitor.rb14 th = Thread.start {
19 Thread.pass
27 Thread.pass
37 th = Thread.start {
42 Thread.pass
50 Thread.pass
60 t1 = Thread.start {
66 t2 = Thread.start {
86 th = Thread.start {
109 Thread
[all...]
/macosx-10.9.5/ruby-104/ruby/test/xmlrpc/
H A Dwebrick_testing.rb13 @__server_thread = Thread.new {
32 Thread.pass until @__started # wait until the server is ready
39 Thread.pass while @__started # wait until the server is down
/macosx-10.9.5/CPANInternal-140/Net-Daemon/
H A Dregexp-threads16 use Thread ();
47 print "Thread $myNum starting\n";
56 print "Thread $myNum: Fatal error ($@)\n" if $err;
57 print "Thread $myNum, error: index = $num1, regexp = $num2\n"
59 print "Thread $myNum leaving\n";
67 print "Creating thread $i, TID = ", Thread->self->tid(), "\n";
68 my $tid = Thread->new(\&Run, $i);
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/
H A Dmulti-ip_sample2.rb3 th = Thread.new{Tk.mainloop}
25 Thread.new{ip1.eval_proc(cmd, 1.1)}
26 Thread.new{ip2.eval_proc(cmd, 0.3)}

Completed in 236 milliseconds

1234567891011>>