diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-07-16 10:21:18 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-07-16 10:21:18 +0000 |
commit | 2f84de1ff5872260898773859ea2d88cf90c232e (patch) | |
tree | 86ab8e610ca632cd1a6604e31f0c6fb6e9c7b913 /winsup/cygwin/include/pthread.h | |
parent | ee5055296a64186b7561c7461b1797b584da7ff2 (diff) | |
download | cygnal-2f84de1ff5872260898773859ea2d88cf90c232e.tar.gz cygnal-2f84de1ff5872260898773859ea2d88cf90c232e.tar.bz2 cygnal-2f84de1ff5872260898773859ea2d88cf90c232e.zip |
* thread.cc (pthread::create): Handle stackaddr as upper bound address.
Add comment.
(pthread_attr_setstack): Store upper bound address in stackaddr.
Explain why.
(pthread_attr_getstack): Handle stackaddr as upper bound address.
Add comment.
(pthread_attr_setstackaddr): Add comment.
(pthread_attr_getstackaddr): Add comment.
(pthread_attr_getstacksize): Return default stacksize if stacksize has
not been set by the application, just as on Linux. Add comment.
(pthread_getattr_np): Store upper bound address in stackaddr. Explain
why.
* include/pthread.h: Remove outdated comment.
(pthread_attr_getstackaddr): Mark as deprecated, as on Linux.
(pthread_attr_setstackaddr): Ditto.
Diffstat (limited to 'winsup/cygwin/include/pthread.h')
-rw-r--r-- | winsup/cygwin/include/pthread.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index bfedf1f75..9170d96fc 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -1,7 +1,7 @@ /* pthread.h: POSIX pthread interface Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, - 2007, 2011, 2012, 2013 Red Hat, Inc. + 2007, 2011, 2012, 2013, 2014 Red Hat, Inc. Written by Marco Fuykschot <marco@ddi.nl> @@ -75,7 +75,8 @@ int pthread_attr_getschedparam (const pthread_attr_t *, struct sched_param *); int pthread_attr_getschedpolicy (const pthread_attr_t *, int *); int pthread_attr_getscope (const pthread_attr_t *, int *); int pthread_attr_getstack (const pthread_attr_t *, void **, size_t *); -int pthread_attr_getstackaddr (const pthread_attr_t *, void **); +int pthread_attr_getstackaddr (const pthread_attr_t *, void **) + __attribute__ ((deprecated)); int pthread_attr_init (pthread_attr_t *); int pthread_attr_setdetachstate (pthread_attr_t *, int); int pthread_attr_setguardsize (pthread_attr_t *, size_t); @@ -85,12 +86,9 @@ int pthread_attr_setschedpolicy (pthread_attr_t *, int); int pthread_attr_setscope (pthread_attr_t *, int); #ifdef _POSIX_THREAD_ATTR_STACKADDR -/* These functions may be implementable via some low level trickery. For now they are - * Not supported or implemented. The prototypes are here so if someone greps the - * source they will see these comments - */ int pthread_attr_setstack (pthread_attr_t *, void *, size_t); -int pthread_attr_setstackaddr (pthread_attr_t *, void *); +int pthread_attr_setstackaddr (pthread_attr_t *, void *) + __attribute__ ((deprecated)); #endif #ifdef _POSIX_THREAD_ATTR_STACKSIZE |