I am working on a product that uses QNX. I was wondering if there is a way to determine what a thread’s stack size is? Specifically a thread that is already created.
I have read through Pthreads Programming, and the QNX library reference and it seems like the usage of pthread_attr_getstacksize() used with pthread_attr_init() is a way to determine what the stack size WILL be for the attribute we are going to pass to a thread during creation time.
Actually, if I recall my tracing correctly this is the main thread, so it doesn’t even have a call to pthread_create().
Is there a way to determine the stack size after the thread has already been created?
Thanks for your help.