Opened 14 years ago

Closed 12 years ago

#1939 closed Feature Requests (wontfix)

request: extend, make atomic_count a public header file

Reported by: Bryan Green <bryan.d.green@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.35.0 Severity: Optimization
Keywords: atomic_count synchronization Cc:

Description

Hello,

I believe this question is for Peter Dimov, as the author of atomic_count and sp_counted_base.

Have you considered making atomic_count.hpp a public header file, i.e. not in the 'detail' subdirectory, and adding some more traditional test-and-set type operations, such as post-increment and operator+=? This is a generally useful interface, and not easy to replicate on one's own in a portable way. As for the operations which are missing from the atomic_count class itself, it seems apparent from the implementation files for atomic_count.hpp and sp_counted_base_sync.hpp that these operations are available.

Is this something you are interested in doing, or do you have reservations about such a public class? Are you interested in help, in the form of patches? I'd be glad to contribute. It looks like all the hard work has already been done. :)

Change History (2)

comment:1 by Peter Dimov, 14 years ago

Milestone: Boost 1.36.0To Be Determined

comment:2 by Peter Dimov, 12 years ago

Resolution: wontfix
Status: newclosed

This functionality will be provided by the upcoming Boost.Atomic and C++0x.

Note: See TracTickets for help on using tickets.