Module: Ragweed::Wraposx::ThreadInfo

Defined in:
lib/ragweed/wraposx/thread_info.rb

Defined Under Namespace

Modules: State Classes: Basic, SchedRr, SchedTimeshare

Constant Summary collapse

BASIC_INFO =

info interfaces

3
SCHED_TIMESHARE_INFO =

following are obsolete interfaces according to the source @ fxr they still work except FIFO

10
SCHED_RR_INFO =
11
FLAVORS =
{
    # define THREAD_BASIC_INFO_COUNT   ((mach_msg_type_number_t)(sizeof(thread_basic_info_data_t) / sizeof(natural_t)))
    BASIC_INFO => {:size => 30, :count => 10, :class => Basic},
    # define POLICY_TIMESHARE_INFO_COUNT     ((mach_msg_type_number_t)(sizeof(struct policy_timeshare_info)/sizeof(integer_t)))
    SCHED_TIMESHARE_INFO => {:size => 20, :count => 5, :class => SchedTimeshare},
    # define POLICY_RR_INFO_COUNT    ((mach_msg_type_number_t)(sizeof(struct policy_rr_info)/sizeof(integer_t)))
    SCHED_RR_INFO => {:size => 20,:count => 5, :class => SchedRr},
    # define POLICY_FIFO_INFO_COUNT  ((mach_msg_type_number_t)(sizeof(struct policy_fifo_info)/sizeof(integer_t)))
    # SCHED_FIFO_INFO => {:size => 16,:count => 4} # immediately returns KERNEL_INVALID_POLICY on osx
}