Ignore:
Timestamp:
Jul 30, 2015, 8:47:36 PM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
454bc54
Parents:
163eec
git-author:
Frederik Heber <heber@…> (06/18/15 00:02:38)
git-committer:
Frederik Heber <heber@…> (07/30/15 20:47:36)
Message:

Observables are now protected by mutexes, i.e. allow for concurrent use.

File:
1 edited

Legend:

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

    r163eec r1b5188  
    1818#include <string>
    1919#include <boost/function.hpp>
     20#include <boost/thread.hpp>
    2021
    2122#include "CodePatterns/Range.hpp"
     
    135136  static std::set<Observable*> busyObservables;
    136137
     138  static boost::recursive_mutex ObservablesMapLock; //!< a lock for the pointer of the instance
     139
    137140private:
    138141  friend class Zombie;
Note: See TracChangeset for help on using the changeset viewer.