MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pthread_attr_init

Function pthread_attr_init

components/libc/posix/pthreads/pthread_attr.c:50–57  ·  view source on GitHub ↗

* @brief This function will initialize thread attributes object. * * @note The pthread_attr_t type should be treated as opaque: any access to the object other * than via pthreads functions is nonportable and produces undefined results. * The resulting attribute object (possibly modified by setting individual attribute values), * when used by pthread_creat

Source from the content-addressed store, hash-verified

48 * @warning This function will fail if attr is null.
49 */
50int pthread_attr_init(pthread_attr_t *attr)
51{
52 RT_ASSERT(attr != RT_NULL);
53
54 *attr = pthread_default_attr;
55
56 return 0;
57}
58RTM_EXPORT(pthread_attr_init);
59
60/**

Callers 2

pthread_createFunction · 0.85
thread_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected