Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1421, Add RTEMS console and timebase posix task names #1422

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/os/rtems/src/os-impl-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
/****************************************************************************************
INCLUDE FILES
***************************************************************************************/
#define _GNU_SOURCE
#include <pthread.h>

#include "os-rtems.h"
#include "os-shared-printf.h"
Expand Down Expand Up @@ -170,6 +172,8 @@ int32 OS_ConsoleCreate_Impl(const OS_object_token_t *token)
}
else
{
pthread_setname_np(r_task_id, "OS_CONSOLE");

/* will place the task in 'ready for scheduling' state */
status = rtems_task_start(r_task_id, /*rtems task id*/
OS_ConsoleTask_Entry, /* task entry point */
Expand Down
5 changes: 5 additions & 0 deletions src/os/rtems/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
/****************************************************************************************
INCLUDE FILES
***************************************************************************************/
#define _GNU_SOURCE
#include <pthread.h>

#include "os-rtems.h"

#include "os-shared-common.h"
Expand Down Expand Up @@ -388,6 +391,8 @@ int32 OS_TimeBaseCreate_Impl(const OS_object_token_t *token)
}
else
{
pthread_setname_np(local->handler_task, "OS_TIMEBASE");

/* will place the task in 'ready for scheduling' state */
rtems_sc = rtems_task_start(local->handler_task, /* rtems task id */
OS_TimeBase_CallbackThreadEntry, /* task entry point */
Expand Down