is there any way to block a thread?