This is about code diagnostics fixes that I want to be merged into the main code.
error, debug, and warning messages available by including
debug.h
errors.h
asserts.h
were not implemented in an atomic manner. As a consequence, output from code diagnostic messages from multiple processes is often interleaved, making it difficult to determine what output is coming from what thread.
I am fixing this by first writing the message to a string and then printing the string to standard output with a single call to fprintf.
Note that I have also changed the output format so that messages indicate process and thread number when appropriate.
This is about code diagnostics fixes that I want to be merged into the main code.
error, debug, and warning messages available by including
were not implemented in an atomic manner. As a consequence, output from code diagnostic messages from multiple processes is often interleaved, making it difficult to determine what output is coming from what thread.
I am fixing this by first writing the message to a string and then printing the string to standard output with a single call to fprintf.
Note that I have also changed the output format so that messages indicate process and thread number when appropriate.