[MacOS] Accessing underlying pthread or mach thread of NSThread

Is the title possible ? I tried [[thread valueForKey:@"_private"] valueForKey:@"tid"] but the tid was not kvc compliant. private apis are alright because this is just for testing remote process thread creation. I already have a working method but it has hardcoded assembly so you can't do anything else.

this question is mainly for Quinn (figured he may know something about this)

Written by doraorak in 775249021
because this is just for testing remote process thread creation.

Say what!?!

If you’re creating threads in other processes then you’re beyond the compatibility pale. That is, the act of creating a thread in another process engenders way more compatibility liability than anything you’re doing to solve this problem.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[MacOS] Accessing underlying pthread or mach thread of NSThread
 
 
Q