Thread to output to stdout
Writes the args in a thread-safe manner.
Writes the args in a thread-safe manner in red (POSIX only). and appends a newline.
Writes the args in a thread-safe manner in yellow (POSIX only). and appends a newline.
Writes the args in a thread-safe manner and appends a newline.
Writes the args in a thread-safe manner in green (POSIX only). and appends a newline.
Writes the args in a thread-safe manner in red (POSIX only) and appends a newline.
Write if debug output was enabled.
IO related functions