sync main thread to void thread operation