source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/thread/thrd_create.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 426 bytes
Line 
1#include "pthread_impl.h"
2#include <threads.h>
3
4int __pthread_create(pthread_t *restrict, const pthread_attr_t *restrict, void *(*)(void *), void *restrict);
5
6int thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
7{
8 int ret = __pthread_create(thr, __ATTRP_C11_THREAD, (void *(*)(void *))func, arg);
9 switch (ret) {
10 case 0: return thrd_success;
11 case EAGAIN: return thrd_nomem;
12 default: return thrd_error;
13 }
14}
Note: See TracBrowser for help on using the repository browser.