[FIX] signal the cond to continue the user thread, then release the resources.