cocaine/cocaine-dealer — pull request #1 by bogdad (2012-09-17 15:39:58+00:00)
Title: multithreaded storage iteration fix

Hi,

calling dealer->get_stored_messages(...) occasionally results in segfaults or other crashes.
This seems to be due to eblob calling dealer_impl::storage_iteration_callback in multiple threads simulateoneusly, and storage_iteration_callback pushes to unprotected m_messages_ptr.

The fix included. (not sure its the best one though)