Opened 9 years ago

Last modified 9 years ago

#5319 closed Bug

potential race condition when counting torrents — at Initial Version

Reported by: livings124 Owned by: livings124
Priority: Lowest Milestone: 2.80
Component: Mac Client Version: 2.77
Severity: Trivial Keywords:
Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.