* @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
| 48 | * @warning This function will fail if attr is null. |
| 49 | */ |
| 50 | int 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 | } |
| 58 | RTM_EXPORT(pthread_attr_init); |
| 59 | |
| 60 | /** |
no outgoing calls
no test coverage detected