Descriptionposix: set thread names
There's a non-portable function for doing this: pthread_setname_np.
It's supported by OS X >= 10.6 and the Xcode debugger will show the thread
names if they're provided. On Linux, support has just recently been added
to glibc for the same function. Since OS coverage of the function is so
spotty, we look for the symbol at runtime; on Linux we fall back to another
implementation of the same functionality if the function isn't available.
[reland of r49212, with Mac fixed and Linux disabled; see
comments in code as to why Linux is disabled]
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49465
Patch Set 1 #Patch Set 2 : namespace #Patch Set 3 : brakcet #Patch Set 4 : better #
Total comments: 7
Patch Set 5 : errors #
Total comments: 5
Patch Set 6 : split #
Total comments: 2
Patch Set 7 : disable linux #Messages
Total messages: 8 (0 generated)
|