aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/thread.cc
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.cc
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.cc')
-rw-r--r--winsup/cygwin/thread.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 7964537..e2ffe8e 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1367,23 +1367,6 @@ pthread_key::~pthread_key ()
}
}
-int
-pthread_key::set (const void *value)
-{
- /* the OS function doesn't perform error checking */
- TlsSetValue (tls_index, (void *) value);
- return 0;
-}
-
-void *
-pthread_key::get () const
-{
- int saved_error = ::GetLastError ();
- void *result = TlsGetValue (tls_index);
- ::SetLastError (saved_error);
- return result;
-}
-
void
pthread_key::_fixup_before_fork ()
{