Changes between Initial Version and Version 2 of Ticket #5319


Ignore:
Timestamp:
Mar 7, 2013, 4:27:23 AM (9 years ago)
Author:
livings124
Comment:

r14044 Use OSAtomicIncrement32(&value) instead of OSAtomicAdd32(1, &value)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5319

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #5319 – Description

    initial v2  
    1 Enumerating the torrents to filter and count the amount of downloading, seeding, paused, and active has a theoretical race condition when incrementing the counters. We should use OSAtomicAdd32() (or similar when incrementing.
     1Enumerating the torrents to filter and count the amount of downloading, seeding, paused, and active has a theoretical race condition when incrementing the counters. We should use OSAtomicAdd32() (or similar) when incrementing.