Changes between Version 2 and Version 3 of Ticket #7540
- Timestamp:
- Oct 23, 2012, 8:02:46 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7540
- Property Summary Add a helper class that interrupts a thread and join it on destruction → Add 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 andjoin a thread on destruction.1 Based on the thread_guard class defined in C++ Concurrency in Action define a helper class that join a thread on destruction. 2 2 3 3 … … 21 21 ~thread_guard() 22 22 { 23 #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS24 t.interrupt();25 #endif26 23 if (t.joinable()) 27 24 {