@param wait_thread_started: if ture this method will block until loop_thread started. @param pre: This functor will be executed when loop_thread started. @param post:This Functor will be executed when loop_thread stopped.
Source from the content-addressed store, hash-verified