Revert "fixed critical bug in inter-thread communication"

This reverts commit 96023853b89288a2b5011ea32d8058075096cce3.