ADDED: timeout and deadline options to thread_send_message