summaryrefslogtreecommitdiff
path: root/src/thread/pthread_attr_init.c
blob: 463a8d20751256fccce53af7ae6925de7fc1e9ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "pthread_impl.h"

int pthread_attr_init(pthread_attr_t *a)
{
	*a = (pthread_attr_t){0};
	__acquire_ptc();
	a->_a_stacksize = __default_stacksize;
	a->_a_guardsize = __default_guardsize;
	__release_ptc();
	return 0;
}