Subject: [Boost-bugs] [Boost C++ Libraries] #6314: join doesn't work for second time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-22 18:21:07
#6314: join doesn't work for second time
----------------------------------+-----------------------------------------
Reporter: haiyang_yin@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.48.0 | Severity: Problem
Keywords: thread joinable |
----------------------------------+-----------------------------------------
I have log service which is running in a boost thread. Basically, I would
like to start/stop this log service dynamically. However, I seem to be
able to start/stop for only twice. After second time, the caller thread
will be blocked in join() method call. ( Noticed that "thread joined
successfully" only showed once ):
ConcurrentMessageQueue::ConcurrentMessageQueue()
Logger::Logger()
ConsoleLogger::ConsoleLogger()
[New Thread 0x7ffff6792700 (LWP 10112)]
thread joinable [ 1
iteration [ 0 ] 100 log messages have been processed successfully
thread joinable [ 1
2011-12-22 13:15:49.564 [ INFO ] [
../src/com/purplehyacinth/framework/logger/LogService.cpp ] [ 300 ] thread
[ log service ] started...
2011-12-22 13:15:49.580 [ INFO ] [
../src/com/purplehyacinth/framework/logger/LogService.cpp ] [ 329 ] thread
[ log service ] stopped...
thread joined successfully
[Thread 0x7ffff6792700 (LWP 10112) exited]
[New Thread 0x7ffff6792700 (LWP 10113)]
thread joinable [ 1
iteration [ 1 ] 100 log messages have been processed successfully
thread joinable [ 1
2011-12-22 13:15:49.585 [ INFO ] [
../src/com/purplehyacinth/framework/logger/LogService.cpp ] [ 300 ] thread
[ log service ] started...
2011-12-22 13:15:49.585 [ INFO ] [
../src/com/purplehyacinth/framework/logger/LogService.cpp ] [ 329 ] thread
[ log service ] stopped...
[Thread 0x7ffff6792700 (LWP 10113) exited]
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6314> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC