You can now flush without locking the thread