[ros-dev] Re: [ros-svn] [hbirr] 14443: - Fixed ExTimerRundown.
hartmut.birr at gmx.de
Sun Apr 3 12:19:40 CEST 2005
Phillip Susi wrote:
> I just glanced at the diffs on that change and it looks like it is
> releasing the global timer lock and then grabbing the lock on the
> individual timer. Doesn't that create a race condition where the
> timer can be deleted in between releasing the global lock and grabbing
> the local? Shouldn't that order be reversed?
It isn't possible to delete the timer within this gap. The timer has an
additional reference which depends on ApcAssociated. ApcAssociated is
only changed if the local lock is held.
More information about the Ros-dev