Changes between Version 2 and Version 3 of Ticket #7540


Ignore:
Timestamp:
Oct 23, 2012, 8:02:46 PM (10 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7540

    • Property Summary Add a helper class that interrupts a thread and join it on destructionAdd a helper class that join a thread on destruction
  • Ticket #7540 – Description

    v2 v3  
    1 Based on the thread_guard class defined in C++ Concurrency in Action define a helper class that interrupts and join a thread on destruction.
     1Based on the thread_guard class defined in C++ Concurrency in Action define a helper class that join a thread on destruction.
    22
    33
     
    2121    ~thread_guard()
    2222    {
    23 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
    24       t.interrupt();
    25 #endif
    2623      if (t.joinable())
    2724      {