Thread names and cosmetics

This commit is contained in:
Bertrand Songis
2019-06-18 12:13:11 +02:00
parent ad13301389
commit afa69cb0c5
5 changed files with 92 additions and 82 deletions
+2 -1
View File
@@ -114,9 +114,10 @@ extern "C++" {
#define TASK_FUNCTION(task) void * task(void * pdata)
template<int SIZE>
inline void RTOS_CREATE_TASK(pthread_t &taskId, void * task(void *), const char *, FakeTaskStack<SIZE> &, unsigned, unsigned)
inline void RTOS_CREATE_TASK(pthread_t &taskId, void * task(void *), const char * name, FakeTaskStack<SIZE> &, unsigned, unsigned)
{
pthread_create(&taskId, nullptr, task, nullptr);
pthread_setname_np(taskId, name);
}
#define TASK_RETURN() return nullptr