Skip to content

Commit

Permalink
clang-format exclude list correction and erpc_threading.h reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalPrincNXP committed Jan 19, 2024
1 parent acd195d commit 32ce7f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ jobs:
- uses: DoozyX/[email protected]
with:
source: '.'
exclude: 'examples/zephyr/matrix_multiply_rpmsglite/src/service examples/zephyr/matrix_multiply_uart/src/service'
exclude: './examples/zephyr/matrix_multiply_rpmsglite/remote/src/service ./examples/zephyr/matrix_multiply_rpmsglite/src/service ./examples/zephyr/matrix_multiply_uart/src/service'
clangFormatVersion: 16
10 changes: 5 additions & 5 deletions erpc_c/port/erpc_threading.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ class Thread
static pthread_key_t s_threadObjectKey; /*!< Thread key. */
pthread_t m_thread; /*!< Current thread. */
#elif ERPC_THREADS_IS(FREERTOS)
TaskHandle_t m_task; /*!< Current task. */
Thread *m_next; /*!< Pointer to next Thread. */
static Thread *s_first; /*!< Pointer to first Thread. */
TaskHandle_t m_task; /*!< Current task. */
Thread *m_next; /*!< Pointer to next Thread. */
static Thread *s_first; /*!< Pointer to first Thread. */
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_STATIC
StaticTask_t m_staticTask; /*!< Hold static task data. */
#endif
Expand Down Expand Up @@ -413,7 +413,7 @@ class Mutex
#elif ERPC_THREADS_IS(ZEPHYR)
struct k_mutex m_mutex; /*!< Mutex.*/
#elif ERPC_THREADS_IS(MBED)
rtos::Mutex *m_mutex; /*!< Mutex. */
rtos::Mutex *m_mutex; /*!< Mutex. */
#elif ERPC_THREADS_IS(WIN32)
HANDLE m_mutex;
#elif ERPC_THREADS_IS(THREADX)
Expand Down Expand Up @@ -499,7 +499,7 @@ class Semaphore
SemaphoreHandle_t m_sem; /*!< Semaphore. */
StaticSemaphore_t m_staticQueue; /*!< Static queue. */
#elif ERPC_THREADS_IS(ZEPHYR)
struct k_sem m_sem; /*!< Semaphore. */
struct k_sem m_sem; /*!< Semaphore. */
#elif ERPC_THREADS_IS(MBED)
rtos::Semaphore *m_sem; /*!< Semaphore. */
int m_count; /*!< Semaphore count number. */
Expand Down

0 comments on commit 32ce7f2

Please sign in to comment.