atomic counters implemented

Bug #617988 reported by Gennady Proskurin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DC++
Fix Released
Low
Unassigned
LinuxDC++
Confirmed
Low
Unassigned

Bug Description

Implemented atomic class template, which includes int32_t and uint32_t portable atomic counters from boost.
Using this class in "struct Counts" instead of heavy-weight safeInc/safeDec functions.
Also "operator!=" is removed from struct Counts (it is unused, and it is not safe in multithread)

Tags: core

Related branches

Revision history for this message
Gennady Proskurin (gpr) wrote :
description: updated
Revision history for this message
Steven Sheehy (steven-sheehy) wrote :

Marking as fixed in dc++. Let us know if you disagree with the approach taken since it differs from your patch.

Will be included in linuxdcpp once we upgrade the core.

Changed in linuxdcpp:
importance: Undecided → Low
status: New → Confirmed
Changed in dcplusplus:
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
poy (poy) wrote :

Fixed in DC++ 0.780.

Changed in dcplusplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.