pub unsafe static mut module_stdout_mutex: pthread_mutex_tExpand description
Protects multi-line answers against asynchronous event reporting
Rust consumers should generally not need this. It is only required if
you intend to send custom SSIP messages on io::stdout. Prefer using
module_tts_output_server, module_speak_ok, module_speak_error,
module_report_index_mark, module_report_icon and the
module_report_event_* class of functions to print SSIP message for
you.
If you do need to send SSID message yourself, lock this mutex using
libc::pthread_mutex_lock, print you messages
using libc::printf (or other bufferred C I/O), call
libc::fflush to ensure your response is writte, then unlock the
mutex using libc::pthread_mutex_unlock.