« Previous | Next » 

Revision ee44bd2e

IDee44bd2eadc73bb4a8151a131158951e67f9650b
Parent e702d896
Child aafac865

Added by Mirko Stoffers almost 6 years ago

Made cDynamicExpression::evaluate (and therefore cPar::doubleValue) thread-safe

Problem: cDynamicExpression::evaluate was not thread-safe (also noted in the
comment), but used by cPar::doubleValue from a threaded context. This
caused using par() for random variables to yield wrong results in rare
cases.

Solution: Made the global variables used by cDynamicExpression::evaluate
threadlocal.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences