First it seems as if the location of definition has changed: in 9.04 its somewhere through pthread.h and in 10.04 its through limits.h (can someone please confirm it? where is it actually defined in each version?)

Second, have the values changed between the two versions?

Thanks

Ben

2

1 Answer

You should include only <pthread.h> and it should include PTHREAD_STACK_MIN definition, directly or indirectly. I can't check an ubuntu, but searching in glibc sources shows that it is sometimes in pthread.h and sometimes in bits/local_lim.h.

This is typically 16 KB for x86 and somewhat bigger for MIPS and Itamium.

Update: Hmmm.. I was wrong. This definition was moved to <limits.h> (indirectly), so you should to include both files.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.