MCPcopy Create free account
hub / github.com/apache/nuttx / pthread_attr_init

Function pthread_attr_init

libs/libc/pthread/pthread_attr_init.c:72–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 ****************************************************************************/
71
72int pthread_attr_init(FAR pthread_attr_t *attr)
73{
74 int ret = OK;
75
76 linfo("attr=%p\n", attr);
77 if (!attr)
78 {
79 ret = ENOMEM;
80 }
81 else
82 {
83 /* Set the child thread priority to be the default
84 * priority. Set the child stack size to some arbitrary
85 * default value.
86 */
87
88 memcpy(attr, &g_default_pthread_attr, sizeof(pthread_attr_t));
89 }
90
91 linfo("Returning %d\n", ret);
92 return ret;
93}

Callers 15

host_cpu_startFunction · 0.85
classd_startFunction · 0.85
cxd56_src_initFunction · 0.85
cxd56_init_workerFunction · 0.85
null_startFunction · 0.85
cs4344_startFunction · 0.85
es8311_startFunction · 0.85
cs43l22_startFunction · 0.85
es8388_startFunction · 0.85
wm8994_startFunction · 0.85
wm8904_startFunction · 0.85
vs1053_startFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected