Re: A solution to pthread_getattr_np on MacOS X and potentially others.

2007-02-25 Thread Kevin Ryde
Steven Wu <[EMAIL PROTECTED]> writes: > > + start = pthread_get_stackaddr_np (self_id); \ Thanks, in fact we have some code in the cvs with that, /* This method for MacOS X. It'd be nice if there was some documentation on pthread_get_stackaddr_np, but as of 2006 there's nothing

A solution to pthread_getattr_np on MacOS X and potentially others.

2007-02-24 Thread Steven Wu
One problem that I see in porting Guile to MacOS X is the function get_thread_stack_base. Since pthread_getattr_np is not portable, we need a better approach. Here is what I did: I defined a macro PTHREAD_GET_STACKSIZE(size, start, end) and used that in get_thread_stack_base function. I the