Add doc/ folder, split up readme and add more usage documentation#55
Conversation
Move sections to new doc/design.md, doc/install.md, doc/usage.md files. Also add link to issue tracker.
|
Updated comment where this was suggested bitcoin/bitcoin#19160 (comment) |
|
Post-merge ACK 1a3dc8d, thanks for taking the suggestion! One of the hurdle I've met is how to pass interface pointers cleanly across processes to enable bidirectional requests. IIRC, this is illustrated in |
Thanks this is good to know, and I'll make a note to write a description. I will say a complication of passing interface pointers is ownership semantics. The thing that works best is to use |
|
Sorry the code is a mess, I think here is an example of passing interface pointers : https://github.com/ariard/bitcoin/blob/76c82fc7cbba554fbcfd2f9dfff02c338e75f051/src/interfaces/init.h#L40 Where a pointer on the And yeah really true on the ownership semantics, I did end up by using |
Yes, I think using unique_ptr is a good thing. It ensures that all the objects shared across processes have a clear owner. It also encourages objects which are shared across processes to be lightweight wrappers, so the cross-process API that is exposed is separate from the actual implementation of features that are being provided. |
No description provided.