Avoid invalid thread name error when creating thread with SOPC_Thread_Create
Description
SOPC_Thread_Create
proposes to provide a thread name when creating a thread.
However, for POSIX implementation, this name is limited to 16 characters (including terminating null byte).
The current API does not indicate this limitation or behavior of SOPC_Thread_Create
when facing this issue.
Fixes
-
SOPC_Thread_Create
API: indicates limitation when using POSIX implementation and indicates thread name might be truncated - Modify
SOPC_Thread_Create
POSIX implementation to trunc name to 16 characters if needed - Avoid S2OPC code to call
SOPC_Thread_Create
with more than 16 characters