Skip to content

Set posix thread names using task name when creating CFE tasks #532

@dsburns

Description

@dsburns

Is your feature request related to a problem? Please describe.
It would be helpful for the pthread name to match the CFE task name in the underlying OS on POSIX platforms. This would allow for a better user experience when debugging CFE applications using Linux based utilities i.e. strace, htop, etc.

Describe the solution you'd like
This can be accomplished by using the pthread_setname_np function in the OS_Posix_InternalTaskCreate_Impl function. Since this is a non-posix function, each BSP can specify the availability of this function through a #define in osconfig.h

Describe alternatives you've considered
None

Additional context
None

Requester Info
Dan Burns (GSFC - 596.0)
daniel.s.burns@nasa.gov

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions