Project

General

Profile

Actions

Bug #83

closed

set thread name

Added by Victor Julien almost 15 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
High
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

For all threads set the name using: prctl(PR_SET_NAME, "myname");

Actions #1

Updated by Victor Julien almost 15 years ago

  • Due date changed from 02/09/2010 to 02/17/2010

Don't miss the mgt threads.

Actions #2

Updated by Victor Julien almost 15 years ago

  • Due date changed from 02/17/2010 to 03/13/2010
  • Target version changed from 0.8.1 to 0.8.2
Actions #3

Updated by Gerado Iglesias Galvan almost 15 years ago

Victor Julien wrote:

For all threads set the name using: prctl(PR_SET_NAME, "myname");

prctl() seems not to be portable and PR_SET_NAME is only available in kernels >2.6.9

Actions #4

Updated by Victor Julien almost 15 years ago

Right. So we need proper detection of it's availability in configure.in. Anything similar to it in FreeBSD/Mac/Windows?

Actions #5

Updated by Gerado Iglesias Galvan almost 15 years ago

Windows uses SetThreadName, but it only works under debugging mode...
FreeBSD has pthread_set_name_np, though it seems it's a debugging interface too.
I have no clue about Mac.

Actions #6

Updated by Victor Julien almost 15 years ago

Can you create a patch for this?

Actions #7

Updated by Victor Julien over 14 years ago

  • Due date changed from 03/13/2010 to 04/16/2010
  • Assignee changed from OISF Dev to Gerado Iglesias Galvan
  • Priority changed from Normal to High
Actions #8

Updated by Victor Julien over 14 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Estimated time changed from 2.00 h to 4.00 h

Patch that adds support for this in Linux applied.

Actions

Also available in: Atom PDF