Ignore:
Timestamp:
Sep 14, 2012, 9:42:09 AM (11 years ago)
Author:
Peter
Message:

fixes #720

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9-stable/yat/random/random.h

    r2804 r2833  
    2828
    2929#include <boost/concept_check.hpp>
     30#include <boost/thread.hpp>
    3031#include <boost/thread/tss.hpp>
    3132
     
    193194    mutable boost::thread_specific_ptr<gsl_rng> rng_;
    194195    mutable unsigned long seed_;
     196    // guard needs to be mutable because major mission for it is to protect seed_ against multi-access, and seed_ is mutable...
     197    mutable boost::mutex mutex_;
    195198  };
    196199
Note: See TracChangeset for help on using the changeset viewer.