Re: thread_t, uthread_t, at al.?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Kernel thread #include <kern/thread.h> #include <kern/thread_act.h> #include <kern/thread_swap.h> #include <mach/thread_status.h> Thanks! -- Rick see osfmk src for examples Cheers -plum _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Can someone explain to me what thread_t is? I'm having a heckuva time locating its definition. There's a method in the XNU sources current_thread(), which returns a thread_t. You can call get_bsdthread_info() to get a uthread_t. But I'd like to know more about these threads. Is there documentation somewhere? In particular, how can I get the process ID owning a particular thread_t? http://developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming/scheduler/chapter_8_section_5.html This email sent to site_archiver@lists.apple.com
participants (1)
-
plumber Idraulico