Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cool, that was a bug, and not too difficult to fix and must have felt great when figured-out. But sometimes on darwin you run into stuff that just is so crufty in the BSD emulation, that it's better to use the mach stuff. In this case these class of routines:

  http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_sample.html


I don't think that has a way to get stacks. See http://research.swtch.com/pprof for why stacks are important.


In that case another task using clock_alarm(), task_suspend(), task_resume(), and thread_get_state().




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: