Buffer verbose output, and flush under lock (#29)
Buffer verbose output, and flush under lock (#29)

* Buffer verbose output and flush under lock

* Initialize outs

* Switch from std::mutex to dispatch_semaphore

* Release the semaphore

* Pass ostream pointer, not by ref

MobileNativeFoundation/index-import,MobileNativeFoundation/index-import,MobileNativeFoundation/index-import,MobileNativeFoundation/index-import