os/include/pthread.h : Change pthread_set/getname_np's prctl option
To set/get the name through prctl, PR_SET/GET_NAME_BYPID option should be used.
* @since TizenRT v1.0
*/
#define pthread_setname_np(thread, name) \
- prctl((int)PR_SET_NAME, (char*)name, (int)thread)
+ prctl((int)PR_SET_NAME_BYPID, (char*)name, (int)thread)
/**
* @ingroup PTHREAD_KERNEL
* @since TizenRT v1.0
*/
#define pthread_getname_np(thread, name) \
- prctl((int)PR_GET_NAME, (char*)name, (int)thread)
+ prctl((int)PR_GET_NAME_BYPID, (char*)name, (int)thread)
/********************************************************************************
* Global Type Declarations
