Forum Discussion
GaryBerryman
Mar 02, 2023Copper Contributor
What am I missing? The names of the threads, queues, etc. are prototyped as char*.
But this causes an issue because one shouldn't (it violates sane rules) cast a "const char*" to a "char*". This would be necessary of you use a literal string in the call to the function. I locally changed all the prototypes for the thread create and the issue goes away.
But I am wondering why it isn't like that to begin with.
1 Reply
- jgauthierCopper Contributor
What version of threadX are you using? Mine is 6.1:
UINT _txe_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr, VOID (*entry_function)(ULONG id), ULONG entry_input, VOID *stack_start, ULONG stack_size, UINT priority, UINT preempt_threshold, ULONG time_slice, UINT auto_start, UINT thread_control_block_size)
The github repo is 6.2 and it shows the same as mine.https://github.com/azure-rtos/threadx/blob/master/common/src/tx_thread_create.c