summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/src/thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/src/thread.cc')
-rw-r--r--libstdc++-v3/src/thread.cc40
1 files changed, 1 insertions, 39 deletions
diff --git a/libstdc++-v3/src/thread.cc b/libstdc++-v3/src/thread.cc
index b869e07d6e0..b7a4f83a8e5 100644
--- a/libstdc++-v3/src/thread.cc
+++ b/libstdc++-v3/src/thread.cc
@@ -1,6 +1,6 @@
// thread -*- C++ -*-
-// Copyright (C) 2008 Free Software Foundation, Inc.
+// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -58,27 +58,6 @@ namespace std
}
}
- thread::thread()
- { }
-
- thread::~thread()
- {
- detach();
- }
-
- thread::id
- thread::get_id() const
- {
- if(_M_thread_data)
- return thread::id(_M_thread_data->_M_thread_handle);
- else
- return thread::id();
- }
-
- bool
- thread::joinable() const
- { return get_id() != id(); }
-
void
thread::join()
{
@@ -108,12 +87,6 @@ namespace std
}
}
- void
- thread::swap(thread&& __t)
- {
- std::swap(_M_thread_data, __t._M_thread_data);
- }
-
void
thread::__start_thread()
{
@@ -123,17 +96,6 @@ namespace std
if(__e)
__throw_system_error(__e);
}
-
- namespace this_thread
- {
- thread::id
- get_id()
- { return thread::id(__gthread_self()); }
-
- void
- yield()
- { __gthread_yield(); }
- }
}
#endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1
OpenPOWER on IntegriCloud