aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/thread.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-29 02:42:36 +0000
committerChristopher Faylor <me@cgf.cx>2005-05-29 02:42:36 +0000
commit65a7ca7b7b59302ee06374681bdf907c8bad8f72 (patch)
tree01b729cdbc2e0ab1a58171e5ee68010f17d50f3f /winsup/cygwin/thread.h
parent37b01058e74d4a94febd6267ea66e0d1ad8495b6 (diff)
downloadnewlib-65a7ca7b7b59302ee06374681bdf907c8bad8f72.zip
newlib-65a7ca7b7b59302ee06374681bdf907c8bad8f72.tar.gz
newlib-65a7ca7b7b59302ee06374681bdf907c8bad8f72.tar.bz2
* thread.h (pthread_key::set): Inline.
(pthread_key::get): Ditto. * thread.cc (pthread::set): Delete. (pthread::get): Ditto.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index 712e36f..be2ada6 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 ();