17#ifndef PTHREAD_THREADING_ATTR_H
18#define PTHREAD_THREADING_ATTR_H
44#define PTHREAD_CREATE_JOINABLE (0)
45#define PTHREAD_CREATE_DETACHED (1)
int pthread_attr_init(pthread_attr_t *attr)
Initialize attributes for a new pthread.
int pthread_attr_getinheritsched(const pthread_attr_t *attr, int *inherit)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_setscope(pthread_attr_t *attr, int scope)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
Set address of the stack to use for the new pthread.
int pthread_attr_setinheritsched(pthread_attr_t *attr, int inherit)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
Tells whether to create a new pthread in a detached state.
int pthread_attr_destroy(pthread_attr_t *attr)
Destroys an attribute set.
int pthread_attr_getstack(pthread_attr_t *attr, void **stackaddr, size_t *stacksize)
Query set stacksize for new pthread.
int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_setschedparam(pthread_attr_t *attr, const struct sched_param *param)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
Set the stack size for the new pthread.
int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr, size_t stacksize)
Set address and stack size of the stack to use for the new pthread.
int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_getscope(const pthread_attr_t *attr, int *scope)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
Query assigned stack for new pthread.
int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
Query set stacksize for new pthread.
int pthread_attr_setdetachstate(pthread_attr_t *attr, int detachstate)
Sets whether to create a new pthread in a detached state.
int pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy)
This function is unused right now, and only exists for POSIX compatibility.
int pthread_attr_getschedparam(const pthread_attr_t *attr, struct sched_param *param)
This function is unused right now, and only exists for POSIX compatibility.
An attribute set to supply to pthread_create()
uint8_t detached
Start in detached state.
size_t ss_size
Size of dynamically allocated stack, or supplied stack, resp.
char * ss_sp
Stack to use for new thread.
This structure is unused right now, and only exists for POSIX compatibility.
int todo
Todo is the greates magician in the land of RIOT.