$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [interprocess] atomic<offset_ptr>
From: Tim Blechmann (tim_at_[hidden])
Date: 2013-02-19 08:05:44
hi ion,
i was wondering, what would be the best way to provide an
atomic<offset_ptr>? it cannot be used out of the box, as offset_ptr does
not conform to the std/boost::atomic<> requirements.
afaict, one would have to pre-compute the offset for a specific memory
location when performing a compare_exchange or store and fix up the
offset after an atomic load. to do that, it will probably be required to
access some internals of the offset_ptr.
also, if i'm going to work on it (not sure if i will have time), where
shall the implementation go? in a way, i'd rather put it into
interprocess than into atomic.
thoughts?
cheers, tim