• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "pthread_impl.h"
2 
pthread_attr_init(pthread_attr_t * a)3 int pthread_attr_init(pthread_attr_t *a)
4 {
5 	*a = (pthread_attr_t){0};
6 	__acquire_ptc();
7 	a->_a_stacksize = __default_stacksize;
8 	a->_a_guardsize = __default_guardsize;
9 #ifdef __LITEOS_A__
10 	a->_a_policy = SCHED_RR;
11 	a->_a_prio = 25;
12 #endif
13 	__release_ptc();
14 	return 0;
15 }
16