80464525c7
Using std::thread instead of pthreads and also atomic_bool to identify the end of the flush function so that the unload_tool can wait for it Change-Id: Iea00d7e16c65d51db2d222e8b42f03f9caeb2067