Ignore:
Timestamp:
Oct 23, 2014, 4:33:11 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
fff8fc
Parents:
23b6cf
git-author:
Frederik Heber <heber@…> (09/03/14 17:21:08)
git-committer:
Frederik Heber <heber@…> (10/23/14 16:33:11)
Message:

Added extra flag run_thread_running to ActionQueue.

  • helgrind admonished race conditions when thread is joined. This did not fix them but should be safer as we cannot know whether the other thread has already been started when suddenly shutting down molecuilder due to an exception.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionQueue.hpp

    r23b6cf r9a4949  
    283283  // set run_thread to end such that others are initialized first (especially mutexes)
    284284#ifdef HAVE_ACTION_THREAD
     285  //!> internal flag to tell whether run_thread is still running
     286  bool run_thread_running;
     287
    285288  //!> internal thread to call Actions
    286289  boost::thread run_thread;
Note: See TracChangeset for help on using the changeset viewer.