| 70 | ****************************************************************************/ |
| 71 | |
| 72 | int 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 | } |
no test coverage detected