C Level empty the bucket thread