[DGD] Dgd thread safety

Felix A. Croes felix at dworkin.nl
Wed Oct 12 01:40:01 CEST 2005


"Josh Cassell" <jcassell at microsoft.com> wrote:

> The one question I still have from this is whether calling a function in
> an object could lead to thread conflict if no state is changed in the
> object itself, and if not then will using function scoped variables also
> be possible? Right now I have a single object that handles all input
> from a user and after cleaning it up gives it to different types of
> command objects that call zero second callouts in themselves. The state
> of the object is never modified and there are no global variables. Is
> this ok or should this code be inherited by a user or some other cloned
> object at the cost of larger classes and redundant code?

Just calling a function that makes no changes will not mark the object
as changed, but running a callout in an object counts as a modification
of that object, even if no global variables are changed.

Regards,
Dworkin



More information about the DGD mailing list