Hi -

> > > Maybe we just have to say that you cannot share Dwarf_Die references
> > > between threads? So if you want to use a Dwarf_Die from another thread
> > > you have to copy it instead by passing it by reference? [...]
> 
> (Exactly.  The Dwarf_Die object is small enough, 4 pointers, to be
> simply copied in toto.)

No, that wouldn't help the situation (possible copy while another
thread is updating ->abbrev).

I wonder if another way to specify safety of that field is to
enumerate the dwfl functions which, if called on the Dwarf_Die object,
would be guaranteed to fill it in.  Thereafter it's safe to copy or
share the thing (read-only).

- FChE

Reply via email to