OpenTTD

Tasklist

FS#6471 - Label threads with a descriptive name on Linux/pthreads

Attached to Project: OpenTTD
Opened by J G Rennison (JGR) - Wednesday, 25 May 2016, 19:36 GMT
Last edited by frosch (frosch) - Sunday, 30 October 2016, 17:29 GMT
Type Patch
Category Core
Status Closed
Assigned To No-one
Operating System Linux
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This adds an optional name parameter to ThreadObject::New.
The pthreads implementation calls pthread_setname_np when name is non-NULL.

This is to aid in the identification of additional threads which OpenTTD creates, and is useful in debugging, performance monitoring, etc.
This task depends upon

Closed by  frosch (frosch)
Sunday, 30 October 2016, 17:29 GMT
Reason for closing:  Implemented
Additional comments about closing:  in r27670. Thanks for the patch

Loading...