Modify

Opened 6 years ago

#5625 new Patches

sp_counted_base implementation using boost.atomic

Reported by: Phil Endecott Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Severity: Not Applicable
Keywords: atomic shared_ptr sp_counted_base Cc:

Description

I've had this code hanging around waiting for Boost.Atomic to make some progress towards submission, review and acceptance. When that happens, or when people have some other C++0x atomics library, this uses it to implement sp_counted_base in a nice simple fashion without the need for all the current platform-specific code. For now, perhaps it might be useful to a few people who are using the out-of-tree Boost.Atomic.

Attachments (1)

sp_counted_base_atomic.hpp (2.3 KB) - added by Phil Endecott 6 years ago.
sp_counted_base_atomic.hpp

Download all attachments as: .zip

Change History (1)

Changed 6 years ago by Phil Endecott

Attachment: sp_counted_base_atomic.hpp added

sp_counted_base_atomic.hpp

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Peter Dimov.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.