Updated RubySpec submodule to 9f66d0b1.
[rbx.git] / kernel / bootstrap / scheduler.rb
blob6319ad21ecf47339703791f52655b51fc895b395
1 class Scheduler
2   def self.send_in_microseconds(chan, microseconds, tag)
3     Ruby.primitive :channel_send_in_microseconds
4     raise PrimitiveFailure, "primitive failed"
5   end
7   def self.send_in_seconds(chan, seconds, tag)
8     Ruby.primitive :channel_send_in_seconds
9     raise PrimitiveFailure, "primitive failed"
10   end
12   def self.send_on_readable(chan, io, buffer, nbytes)
13     Ruby.primitive :channel_send_on_readable
14     raise PrimitiveFailure, "primitive failed"
15   end
17   def self.send_on_writable(chan, io)
18     Ruby.primitive :channel_send_on_readable
19     raise PrimitiveFailure, "primitive failed"
20   end
22   def self.send_on_signal(chan, signum)
23     Ruby.primitive :channel_send_on_signal
24     raise PrimitiveFailure, "primitive failed"
25   end
27   def self.send_on_stopped_prim(chan, pid, flags)
28     Ruby.primitive :channel_send_on_stopped
29     raise PrimitiveFailure, "primitive failed"
30   end
32   def self.send_on_stopped(chan, pid=-1, flags=0)
33     send_on_stopped_prim(chan, pid, flags)
34   end
36   def self.cancel(id)
37     Ruby.primitive :scheduler_cancel
38     raise PrimitiveFailure, "primitive failed"
39   end
40 end