Add my_thread_setname functionality to my_thread interface

Registered by George Ormond Lorch III on 2017-03-03

For PS 5.7 and MyRocks, extend the my_thread interface to expose a new function call my_thread_setname that would call pthread_setname_np.

Be cautious of who/where this is allowed to call as there is possible race condition if called from thread creator and not thread itself after creation and on first run.

my_thread deals with Windows thread management quite a bit as well to normalize the interface. I suggest for our purpose we simply leave Windows implementation empty and only worry about linux since we have no way to test or validate that any Windows implementation within PS actualy compiles and functions.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Medium
Drafter:
George Ormond Lorch III
Direction:
Approved
Assignee:
None
Definition:
Drafting
Series goal:
Accepted for 5.7
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

This would be useful elsewhere, see e.g. https://bugs.launchpad.net/percona-server/+bug/1107080
- Laurynas

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.