Module: Rtos
- Defined in:
- ext/rtos/rtos.c
Instance Method Summary collapse
Instance Method Details
#delay_rt(t) ⇒ Object
10 11 12 13 14 15 |
# File 'ext/rtos/rtos.c', line 10
static
VALUE delay_rt(VALUE c, VALUE t)
{
usleep(NUM2DBL(t)*1000000);
return Qnil;
}
|
#initialize ⇒ Object
4 5 6 7 8 |
# File 'ext/rtos/rtos.c', line 4
static
VALUE initialize(VALUE self)
{
return self;
}
|
#preempt_rt ⇒ Object
17 18 19 20 21 22 23 |
# File 'ext/rtos/rtos.c', line 17
static
VALUE preempt_rt(VALUE c)
{
rb_need_block();
rb_yield(Qnil);
return Qnil;
}
|