Actually curTick is not a global variable; see src/sim/core.hh:

inline Tick curTick() { return _curEventQueue->getCurTick(); }




On Thu, Oct 23, 2014 at 2:57 AM, fela via gem5-users <[email protected]>
wrote:

> Hi everyone,
>
> I didn't find any response to my question so I reformulate it.
> curTick is a global variable. This variable is updated  whenever an event
> is
> serviced in serviceOne().
> My question is when two objects have to update this variable
> simultaneously,
> how can we do this? is there a lock for this variable? I think not because
> I
> didn't find it in the code.
>
>
> Regards,
> Fela
> PhD candidate
>
>
>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to