background: I\'m working on a logging library that is used by many programs.
I\'m assigning a human-readable name for each thread, the main thread should get \"main\", b
Call pthread_self() from main() and record the result. Compare future calls to pthread_self() to your stored value to know if you're on the main thread.