Skip to content

Commit

Permalink
Merge pull request #1422 from skliper:fix1421-rtems_internal_task_names
Browse files Browse the repository at this point in the history
Fix #1421, Add RTEMS console and timebase posix task names
  • Loading branch information
dzbaker committed Oct 5, 2023
2 parents b5dd01c + 6aa98da commit 0978766
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 0978766

Please sign in to comment.