[Block Pointer] Docs

Hi, Sorry for the repetitive emails and thanks to Gregory Crosswhite regarding it but I have improved the user-friendliness of the utility: https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/doc/overvie... Please let me know if there's anything unclear. Thanks, -Phil

Phil Bouchard <philippe@fornux.com> wrote:
I just added examples to the overview and clearly states the advantage of using block_ptr over shared_ptr: https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/doc/overvie...
Hi Phil, This is a good news. I think you could also explain that shared_ptr are sometimes an excellent solution to avoid dangling pointers in multithread environment. And compare that to your current BlockPtr library. Could you make it clearer whether or not multithread is supported (and add some examples in the doc of how this work if that is the case) ? I think you told that at the moment monothread is OK, but multithread would need more digging, is that right? I think you could improve your reference too. Maybe you you could go for a more boost-like reference doc, instead of doxygen. Who knows how much impact this could have during a review ;-) ? Best regards, Pierre

On 5/5/2011 4:31 AM, Pierre Morcello wrote:
Phil Bouchard<philippe@fornux.com> wrote:
I just added examples to the overview and clearly states the advantage of using block_ptr over shared_ptr: https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/doc/overvie...
Hi Phil,
This is a good news. I think you could also explain that shared_ptr are sometimes an excellent solution to avoid dangling pointers in multithread environment. And compare that to your current BlockPtr library.
Could you make it clearer whether or not multithread is supported (and add some examples in the doc of how this work if that is the case) ? I think you told that at the moment monothread is OK, but multithread would need more digging, is that right?
Good idea, I'll add some multithreaded examples.
I think you could improve your reference too. Maybe you you could go for a more boost-like reference doc, instead of doxygen. Who knows how much impact this could have during a review ;-) ?
I'll boostify the docs ;) Thanks, -Phil

On 5/5/2011 11:16 AM, Phil Bouchard wrote:
Good idea, I'll add some multithreaded examples.
I just added an example to the repository (example/thread_test.cpp) but there is a problem with singleton_pool in multithreaded mode. I filed the problem under ticket #5523. Thanks, -Phil

On 5/5/2011 8:10 PM, Phil Bouchard wrote:
I just added an example to the repository (example/thread_test.cpp) but there is a problem with singleton_pool in multithreaded mode. I filed the problem under ticket #5523.
That's strange... I am now locking a mutex before the calls to the pool and it still crashes! -Phil

On 5/5/2011 4:31 AM, Pierre Morcello wrote:
Could you make it clearer whether or not multithread is supported (and add some examples in the doc of how this work if that is the case) ? I think you told that at the moment monothread is OK, but multithread would need more digging, is that right?
To answer your question, multithreading is supported at 99%... I just need to go through all calls one by one and make sure they are safe. Thanks, -Phil
participants (2)
-
Phil Bouchard
-
Pierre Morcello