summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:55:17 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 22:55:17 +0000
commit633d4a34b28c914102342ef7042f643fff3a4451 (patch)
tree5ee89f5e0fcb3bd9888db99f825afe4c0b402d55 /base/file_util.cc
parentc844680f54d4b7e22656b947be29722ef9177d60 (diff)
downloadchromium_src-633d4a34b28c914102342ef7042f643fff3a4451.zip
chromium_src-633d4a34b28c914102342ef7042f643fff3a4451.tar.gz
chromium_src-633d4a34b28c914102342ef7042f643fff3a4451.tar.bz2
posix: 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] Review URL: http://codereview.chromium.org/2774001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
0 files changed, 0 insertions, 0 deletions