« Previous | Next » 

Revision 7ff3c017

ID7ff3c017b36d35718651963d8d82425e6832df5d
Parent 49c66c64

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.

Conflicts:

src/sim/cdynamicexpression.cc

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences