Posix threads

Hal Murray hmurray at megapathdsl.net
Fri Jan 15 09:50:13 UTC 2016


I'm looking for cruft to clean up.

If we have pthreads, will we also have pthread_attr_getstacksize and 
pthread_attr_setstacksize?

devel/hacking.txt says
> You can view POSIX-1.2001, with 2004 Corrigendum, online for free here:
>    http://pubs.opengroup.org/onlinepubs/009695399/toc.htm

http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_setstack
size.html says:

The pthread_attr_getstacksize() and pthread_attr_setstacksize() functions are 
marked as part of the Threads and Thread Stack Size Attribute options.

The restrict keyword is added to the pthread_attr_getstacksize() prototype 
for alignment with the ISO/IEC 9899:1999 standard.

I can't figure out if that means somebody could implement Threads without 
implementing Thread Stack Size.  Or even if they can, would anybody actually 
do it?


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list