source: azure_iot_hub/trunk/musl-1.1.18/src/thread/pthread_self.c@ 388

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

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-csrc
File size: 399 bytes
Line 
1#include "pthread_impl.h"
2#include <threads.h>
3#include "libc.h"
4
5static pthread_t __pthread_self_internal()
6{
7 return __pthread_self();
8}
9
10#ifndef __c2__
11weak_alias(__pthread_self_internal, pthread_self);
12weak_alias(__pthread_self_internal, thrd_current);
13#else
14pthread_t pthread_self()
15{
16 return __pthread_self_internal();
17}
18
19pthread_t thrd_current()
20{
21 return __pthread_self_internal();
22}
23#endif
Note: See TracBrowser for help on using the repository browser.