Ignore:
Timestamp:
Oct 30, 2015, 11:43:20 AM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
3681dd
Parents:
dd7c44
git-author:
Frederik Heber <heber@…> (08/04/15 19:57:52)
git-committer:
Frederik Heber <heber@…> (10/30/15 11:43:20)
Message:

ObserverLog is also protected with mutexes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodePatterns/Observer/ObserverLog.hpp

    rdd7c44 r6e2f3b  
    1515
    1616#include <boost/shared_ptr.hpp>
     17#include <boost/thread/recursive_mutex.hpp>
    1718#include <map>
    1819#include <set>
     
    7071  static std::ostream *nullstream;             // stream that is not displayed
    7172  static std::ostream *outstream;              // stream that is currently used
     73
     74  //!> mutex to ensure access is only per-thread
     75  mutable boost::recursive_mutex mutex;
    7276};
    7377
Note: See TracChangeset for help on using the changeset viewer.