Opened 11 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 11 years ago.
sp_counted_base_atomic.hpp

Download all attachments as: .zip

Change History (1)

by Phil Endecott, 11 years ago

Attachment: sp_counted_base_atomic.hpp added

sp_counted_base_atomic.hpp

Note: See TracTickets for help on using tickets.