Changeset 15625


Ignore:
Timestamp:
05/16/13 16:09:35 (12 years ago)
Author:
tbretz
Message:
Secure fThread.join() against joining a thread which was already stopped.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/queue.h

    r15511 r15625  
    9090    void join()
    9191    {
    92         fThread.join();
     92        // This can happen is the thread is not running anymore
     93        try
     94        {
     95            fThread.join();
     96        }
     97        catch (const std::system_error &)
     98        {
     99        }
    93100    }
    94101};
Note: See TracChangeset for help on using the changeset viewer.