#3145 closed defect (fixed)
pthread_getattr_np does not work
Reported by: | ye0me0ge0tt | Owned by: | joel.sherrill@… |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | score | Version: | 4.11 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
I can not get attributes of thread via this function.
The code shows below (sorry that I can not attack a file behind this)
#define GNU_VISIBLE
#include <pthread.h>
void test_thread (guint8 staddr, size_t *stsize)
{
pthread_attr_t attr;
uint8_t staddr = NULL;
size_t *stsize = 0;
int res = 0;
res = pthread_getattr_np (pthread_self(), &attr);
pthread_attr_getstack (&attr, (void)staddr, stsize);
pthread_attr_destroy (&attr);
}
The return value of pthread_getattr_np is 0 which means that this function runs well, but the elements of attr structure are either 0(like stackaddr and stacksize) or 1(like is_initialized).
Change History (2)
comment:1 Changed on 10/10/17 at 05:43:49 by Sebastian Huber <sebastian.huber@…>
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In af9115f3/rtems: