From da6a08decb95746b85f4562c2d3ac921eed9d91b Mon Sep 17 00:00:00 2001 From: Robert Collins Date: Fri, 27 Sep 2002 15:08:50 +0000 Subject: 2002-09-27 Robert Collins * thread.cc (pthread_key::run_destructor): Run_destructor is not const as it needs to set the key value. * thread.h (pthread_key::run_destructor): Ditto. 2002-09-27 Robert Collins * thread.cc (pthread_key::run_destructor): Follow opengroup algorithm. I.e. only run the destructor NON-NULL key values, and reset the key to NULL before running the destructor. Reported by Thomas Pfaff. --- winsup/cygwin/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index c36466020..4be0bf14d 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -212,7 +212,7 @@ private: void saveKeyToBuffer (); void recreateKeyFromBuffer (); void (*destructor) (void *); - void run_destructor () const; + void run_destructor (); void *fork_buf; }; -- cgit v1.2.3