Skip to content
Snippets Groups Projects
  • scott snyder's avatar
    22350614
    GeoModelKernel: Fix race in RCBase::unref(). · 22350614
    scott snyder authored
    The decrement and test must be done atomically; otherwise we could have
    a race.  E.g., suppose a RCBase object has a refcount of 2, and two threads
    call unref simultaneously.  The two decrements could both happen before
    either of the comparisons, resulting in a double-delete.
    22350614
    History
    GeoModelKernel: Fix race in RCBase::unref().
    scott snyder authored
    The decrement and test must be done atomically; otherwise we could have
    a race.  E.g., suppose a RCBase object has a refcount of 2, and two threads
    call unref simultaneously.  The two decrements could both happen before
    either of the comparisons, resulting in a double-delete.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.