« Previous | Next » 

Revision eb21e3cf

IDeb21e3cfb2a65077a21738ff31af6d3cb7fb9f80
Parent 81464874
Child aafac865, bdf154ae

Added by Mirko Stoffers about 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