Minor changes: replaced the #def error function with a real static function.
run_tests script now takes arguments.
Minor changes
Moved the printfs from log_print to the logger-thread.
Many bug fixes related to race conditions.
Use pthread_yield instead of sleep to wait for logger thread
Using sched_yield instead of pthread_yield bcos pthread_yield is deprecated. Other minor changes.
No buffering when trace is enabled. Other minor changes.