Module: PSched
- Extended by:
- FFI::Library
- Defined in:
- lib/psched.rb
Overview
Defined Under Namespace
Classes: Operation
Instance Method Summary collapse
-
#alarm(seconds) ⇒ Fixnum
Set a timer to deliver the signal
SIGALRMto the calling process after the specified number of seconds. -
#setpriority(which, who, prio) ⇒ 0|-1
Set the scheduling priority of the current process.
-
#ualarm(useconds, interval) ⇒ Fixnum
The
ualarm()function waits a count of useconds before asserting the terminating signalSIGALRM.
Instance Method Details
#alarm(seconds) ⇒ Fixnum
Set a timer to deliver the signal SIGALRM to the calling process after
the specified number of seconds
39 |
# File 'lib/psched.rb', line 39 attach_function :alarm, [:uint], :uint |
#setpriority(which, who, prio) ⇒ 0|-1
Set the scheduling priority of the current process
55 |
# File 'lib/psched.rb', line 55 attach_function :setpriority, [:which, :uint, :int], :int |
#ualarm(useconds, interval) ⇒ Fixnum
The ualarm() function waits a count of useconds before asserting the
terminating signal SIGALRM. System activity or time used in processing
the call may cause a slight delay.
If the interval argument is non-zero, the SIGALRM signal will be sent to
the process every interval microseconds after the timer expires
(e.g.,after useconds number of microseconds have passed).
31 |
# File 'lib/psched.rb', line 31 attach_function :ualarm, [:uint, :uint], :uint |