source: asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/mtx_timedlock.c@ 337

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

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 377 bytes
Line 
1#include <threads.h>
2#include <errno.h>
3
4int __pthread_mutex_timedlock(mtx_t *restrict, const struct timespec *restrict);
5
6int mtx_timedlock(mtx_t *restrict m, const struct timespec *restrict ts)
7{
8 int ret = __pthread_mutex_timedlock(m, ts);
9 switch (ret) {
10 default: return thrd_error;
11 case 0: return thrd_success;
12 case ETIMEDOUT: return thrd_timedout;
13 }
14}
Note: See TracBrowser for help on using the repository browser.