|
From: Greg P. <gp...@ap...> - 2012-02-15 17:31:12
|
On Feb 15, 2012, at 12:52 AM, Julian Seward <js...@ac...> wrote: > The tricky bit IMO is going to be the contended case. On Linux we > can fall back to futexes in the normal way, but on Darwin I imagine > the kernel-level helpers for contended cases are completely different. > And may even be different in different OSX versions. I'm sure I saw > a bunch more threading-sounding syscalls for 10.7 that weren't > present in 10.6. If you're rolling your own synchronization code then the Mach semaphore syscalls ought to be straightforward and as consistent as anything else valgrind does. The pthread syscalls change frequently across OS versions. -- Greg Parker gp...@ap... Runtime Wrangler |