include/pthread.h and libs/libcpthread: Fixed pthread_attr_get/setstacksize param type to size_t.
This commit is contained in:
parent
08ff68edec
commit
8f5a94c5e5
|
@ -463,8 +463,8 @@ int pthread_attr_getaffinity_np(FAR const pthread_attr_t *attr,
|
|||
|
||||
/* Set or obtain the default stack size */
|
||||
|
||||
int pthread_attr_setstacksize(FAR pthread_attr_t *attr, long stacksize);
|
||||
int pthread_attr_getstacksize(FAR const pthread_attr_t *attr, long *stackaddr);
|
||||
int pthread_attr_setstacksize(FAR pthread_attr_t *attr, size_t stacksize);
|
||||
int pthread_attr_getstacksize(FAR const pthread_attr_t *attr, size_t *stackaddr);
|
||||
|
||||
/* Set or obtain stack address and size attributes */
|
||||
|
||||
|
|
|
@ -100,12 +100,12 @@
|
|||
"pthread_attr_getinheritsched","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR const pthread_attr_t *","FAR int *"
|
||||
"pthread_attr_getschedparam","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","FAR struct sched_param *"
|
||||
"pthread_attr_getschedpolicy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","int *"
|
||||
"pthread_attr_getstacksize","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","FAR long *"
|
||||
"pthread_attr_getstacksize","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","FAR size_t *"
|
||||
"pthread_attr_init","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *"
|
||||
"pthread_attr_setinheritsched","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","int"
|
||||
"pthread_attr_setschedparam","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","FAR const struct sched_param *"
|
||||
"pthread_attr_setschedpolicy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","int"
|
||||
"pthread_attr_setstacksize","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","long"
|
||||
"pthread_attr_setstacksize","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_attr_t *","size_t"
|
||||
"pthread_barrierattr_destroy","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_barrierattr_t *"
|
||||
"pthread_barrierattr_getpshared","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR const pthread_barrierattr_t *","FAR int *"
|
||||
"pthread_barrierattr_init","pthread.h","!defined(CONFIG_DISABLE_PTHREAD)","int","FAR pthread_barrierattr_t *"
|
||||
|
|
Can't render this file because it has a wrong number of fields in line 2.
|
|
@ -63,7 +63,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int pthread_attr_getstacksize(FAR const pthread_attr_t *attr, FAR long *stacksize)
|
||||
int pthread_attr_getstacksize(FAR const pthread_attr_t *attr, FAR size_t *stacksize)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
int pthread_attr_setstacksize(FAR pthread_attr_t *attr, long stacksize)
|
||||
int pthread_attr_setstacksize(FAR pthread_attr_t *attr, size_t stacksize)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
|
Loading…
Reference in New Issue