From 65a7ca7b7b59302ee06374681bdf907c8bad8f72 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 29 May 2005 02:42:36 +0000 Subject: * thread.h (pthread_key::set): Inline. (pthread_key::get): Ditto. * thread.cc (pthread::set): Delete. (pthread::get): Ditto. --- winsup/cygwin/thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 712e36f03..be2ada6bc 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -209,12 +209,12 @@ protected: class pthread_key: public verifyable_object { + DWORD tls_index; public: static bool is_good_object (pthread_key_t const *); - DWORD tls_index; - int set (const void *); - void *get () const; + int set (const void *value) {TlsSetValue (tls_index, (void *) value); return 0;} + void *get () const {return TlsGetValue (tls_index);} pthread_key (void (*)(void *)); ~pthread_key (); -- cgit v1.2.3