Temporary tag for this failure. Updated CI spec coming.
[rbx.git] / kernel / bootstrap / thread.rb
blobcce61faaf4cedbae6a2891ca60238531c5e112fb
1 class Thread
2   def self.current
3     Ruby.primitive :thread_current
4     Kernel.raise PrimitiveFailure, "primitive failed"
5   end
7   def self.allocate
8     Ruby.primitive :thread_new
9     Kernel.raise PrimitiveFailure, "primitive failed"
10   end
12   def self.pass
13     Ruby.primitive :thread_yield
14     Kernel.raise PrimitiveFailure, "primitive failed"
15   end
17   def self.dequeue
18     Ruby.primitive :thread_dequeue
19     Kernel.raise PrimitiveFailure, "primitive failed"
20   end
21   
22   def run
23     Ruby.primitive :thread_run
24     Kernel.raise ThreadError, "killed thread"
25   end
27   def wakeup
28     Ruby.primitive :thread_schedule
29     Kernel.raise PrimitiveFailure, "primitive failed"
30   end
31   
32 end