From df04fc910723ccb5a86596be00e8dccc8bba5257 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Sat, 29 Apr 2023 08:13:13 +0300 Subject: [PATCH] shoh: rename threads according to thread-name --- source/shoh/src/main.cpp | 6 +++--- source/shoh/src/threads/master/Master.cpp | 2 +- source/shoh/src/threads/master/Master.h | 2 +- source/shoh/src/threads/rotary/Rotary.cpp | 2 +- source/shoh/src/threads/rotary/Rotary.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/shoh/src/main.cpp b/source/shoh/src/main.cpp index 7b04fab..7104c1e 100644 --- a/source/shoh/src/main.cpp +++ b/source/shoh/src/main.cpp @@ -32,15 +32,15 @@ int main(void) qmanager->createQueue(20, sizeof(Event), ThreadCommon::QueueManager::manager_event_master); - + //Creating tasks - manager->createTask(master_thread, "master", + manager->createTask(thread_master, "master", configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL, static_cast(qmanager)); manager->createTask(thread_manager, "manager", configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL, static_cast(qmanager)); - manager->createTask(rotary_thread, "rotary", + manager->createTask(thread_rotary, "rotary", configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL, static_cast(qmanager)); diff --git a/source/shoh/src/threads/master/Master.cpp b/source/shoh/src/threads/master/Master.cpp index c7cea1c..76acb12 100644 --- a/source/shoh/src/threads/master/Master.cpp +++ b/source/shoh/src/threads/master/Master.cpp @@ -41,7 +41,7 @@ void Master::taskFunction() { } -void master_thread(void* pvParams) { +void thread_master(void* pvParams) { Master m(static_cast(pvParams)); m.taskFunction(); } diff --git a/source/shoh/src/threads/master/Master.h b/source/shoh/src/threads/master/Master.h index e5dceae..3a5e790 100644 --- a/source/shoh/src/threads/master/Master.h +++ b/source/shoh/src/threads/master/Master.h @@ -26,7 +26,7 @@ private: ThreadCommon::QueueManager* _qm; }; -void master_thread(void* pvParams); +void thread_master(void* pvParams); #endif /* THREADS_MASTER_MASTER_H_ */ diff --git a/source/shoh/src/threads/rotary/Rotary.cpp b/source/shoh/src/threads/rotary/Rotary.cpp index da1d8ed..eb9f19d 100644 --- a/source/shoh/src/threads/rotary/Rotary.cpp +++ b/source/shoh/src/threads/rotary/Rotary.cpp @@ -64,7 +64,7 @@ void Rotary::taskFunction() } } -void rotary_thread(void* pvParams) +void thread_rotary(void* pvParams) { // Special case for ISR QueueHandle_t rotary_isr_q = xQueueCreate(15, sizeof(char)); diff --git a/source/shoh/src/threads/rotary/Rotary.h b/source/shoh/src/threads/rotary/Rotary.h index 56fdf17..dafe910 100644 --- a/source/shoh/src/threads/rotary/Rotary.h +++ b/source/shoh/src/threads/rotary/Rotary.h @@ -25,6 +25,6 @@ private: { 1, 8, true, false, false, true, PIN_INT2_IRQn} }; }; -void rotary_thread(void* pvParams); +void thread_rotary(void* pvParams); #endif /* THREADS_ROTARY_ROTARY_H_ */