Closed PhotonQuantum closed 2 years ago
Yes, this code runs on my m1 based mbp.
CI is failing. I believe it's because the extern crate libc;
line isn't sufficiently gated. Otherwise this LGTM with the caveat that we should probably check malloc for failure.
Thanks again. Will release tonight.
Trying to make it work on macos so that the
time
crate can return local_offset.However I'm not sure whether the
proc_pidinfo
call is thread-safe because it's an apple internal api. Looks like it copies task info struct to given buffer, so I assume the buffer is properly initialized.