fitzgen / mach

A rust interface to the Mach 3.0 kernel that underlies OSX.
https://docs.rs/mach
Other
81 stars 28 forks source link

Support needed to setup call to mach::clock::clock_get_time. #56

Closed shribe closed 1 year ago

shribe commented 5 years ago

Mostly this is about adding the functions mach_host_self and host_get_clock_service. I went ahead and added host_page_size since that was the only function needed to complete mach_init. The constants for choosing clocks were defined as unsigned, but host_get_clock_service takes a signed type--so I used the typedef.

gnzlbg commented 5 years ago

Master CI is now green, I've closed and re-opened this to restart the CI build.

gnzlbg commented 5 years ago

You probably need to add the new modules to: https://github.com/fitzgen/mach/blob/master/mach-test/test/main.rs

shribe commented 5 years ago

ok, done

-- Scott Ribe scott_ribe@elevated-dev.com https://www.linkedin.com/in/scottribe/

On Aug 12, 2019, at 4:54 AM, gnzlbg notifications@github.com wrote:

You probably need to add the new modules to: https://github.com/fitzgen/mach/blob/master/mach-test/test/main.rs

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

gnzlbg commented 5 years ago

@shribe thanks, everything is green except for formatting, could you run cargo fmt ? I can merge it afterwards and do a new release.

shribe commented 1 year ago

if you're wondering why I never followed up: after getting this working, I discovered that the mach high-precision clock functions are SO SLOW they are worthless in any context where you want the high precision