|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81788 - in trunk/libs/thread/src: pthread win32
From: vicente.botet_at_[hidden]
Date: 2012-12-08 06:01:17
Author: viboes
Date: 2012-12-08 06:01:15 EST (Sat, 08 Dec 2012)
New Revision: 81788
URL: http://svn.boost.org/trac/boost/changeset/81788
Log:
Thread: fix shared_ptr implicit conversion to bool introduced in [81780]
Text files modified:
trunk/libs/thread/src/pthread/thread.cpp | 2 +-
trunk/libs/thread/src/win32/thread.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/thread/src/pthread/thread.cpp
==============================================================================
--- trunk/libs/thread/src/pthread/thread.cpp (original)
+++ trunk/libs/thread/src/pthread/thread.cpp 2012-12-08 06:01:15 EST (Sat, 08 Dec 2012)
@@ -395,7 +395,7 @@
bool thread::joinable() const BOOST_NOEXCEPT
{
- return (get_thread_info)();
+ return (get_thread_info)()!=0;
}
Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2012-12-08 06:01:15 EST (Sat, 08 Dec 2012)
@@ -330,7 +330,7 @@
bool thread::joinable() const BOOST_NOEXCEPT
{
- return (get_thread_info)();
+ return (get_thread_info)() != 0;
}
bool thread::join_noexcept()
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk