This project is archived and is in readonly mode.
[PATCH] Use pthread_self() instead of getpid() in Dprintf
-
Daniele Varrazzo
- State changed from new to invalid
- Tag set to patch debug
Thank you, but I am reluctant to apply this patch because:
1. it doesn't work on Windows:pthread_selfmust be #defined toGetCurrentThreadId. I don't know about OSX.
2.pthread_tis not a pointer: it is an opaque structure only supposed to be compared bypthread_equal. See this and this. So just casting it to a void* doesn't seem portable. -
Daniele Varrazzo
- Tag changed from patch debug to debug, patch