diff options
author | Robert Collins <rbtcollins@hotmail.com> | 2002-06-10 01:10:45 +0000 |
---|---|---|
committer | Robert Collins <rbtcollins@hotmail.com> | 2002-06-10 01:10:45 +0000 |
commit | 007276b30e0a838084eda5c2ac0ba6b9b3243a15 (patch) | |
tree | 1e93111058535c8990996c93e17367830e95f2bc /winsup/cygwin/cygwin.din | |
parent | fec98ec9938900d7d776a464b6d08704c17e80ff (diff) | |
download | cygnal-007276b30e0a838084eda5c2ac0ba6b9b3243a15.tar.gz cygnal-007276b30e0a838084eda5c2ac0ba6b9b3243a15.tar.bz2 cygnal-007276b30e0a838084eda5c2ac0ba6b9b3243a15.zip |
2002-06-10 Robert Collins <rbtcollins@hotmail.com>
* cygwin.din: Add _pthread_cleanup_push and _pthread_cleanup_pop.
* pthread.cc: Change __pthread_self to pthread::self() thruoghout.
(_pthread_cleanup_push): New function.
(_pthread_cleanup_pop): Ditto.
* thread.cc: Thanks to Thomas Pfaff for the pthread cleanup_push,_pop
patch, this work is derived from that.
Change __pthread_self to pthread::self() thruoghout.
(__pthread_self): Rename to pthread::self.
(pthread::self): New method.
(pthread::pthread): Initialize new member.
(pthread::push_cleanup_handler): New method.
(pthread::pop_cleanup_handler): New method.
(pthread::pop_all_cleanup_handlers): New method.
(__pthread_exit): Pop all cleanup handlers.
* thread.h (pthread::push_cleanup_handler): Declare.
(pthread::pop_cleanup_handler): Ditto.
(pthread::pop_all_cleanup_handlers): Ditto.
(pthread::self): New static method.
(__pthread_exit): Give C++ linkage.
(__pthread_join): Ditto.
(__pthread_detach): Ditto.
(__pthread_self): Remove.
2002-04-24 Thomas Pfaff <tpfaff@gmx.net>
* include/pthread.h (__pthread_cleanup_handler): New structure
(pthread_cleanup_push): Rewritten .
(pthread_cleanup_pop): Ditto.
(_pthread_cleanup_push): New prototype.
(_pthread_cleanup_pop) Ditto.
2002-04-24 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (thread_init_wrapper): Check if thread is already joined.
(__pthread_join): Set joiner first.
(__pthread_detach): Ditto.
Diffstat (limited to 'winsup/cygwin/cygwin.din')
-rw-r--r-- | winsup/cygwin/cygwin.din | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index 9bbfa5f4e..c687f7223 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -1186,6 +1186,8 @@ pthread_attr_setschedpolicy pthread_attr_setscope pthread_attr_setstacksize pthread_cancel +_pthread_cleanup_push +_pthread_cleanup_pop pthread_cond_broadcast pthread_cond_destroy pthread_cond_init |