Last change
on this file since 413 was 398, checked in by coas-nagasima, 5 years ago |
mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
454 bytes
|
Line | |
---|
1 | #include <threads.h>
|
---|
2 | #include <errno.h>
|
---|
3 |
|
---|
4 | int __pthread_cond_timedwait(cnd_t *restrict, mtx_t *restrict, const struct timespec *restrict);
|
---|
5 |
|
---|
6 | int cnd_timedwait(cnd_t *restrict c, mtx_t *restrict m, const struct timespec *restrict ts)
|
---|
7 | {
|
---|
8 | int ret = __pthread_cond_timedwait(c, m, ts);
|
---|
9 | switch (ret) {
|
---|
10 | /* May also return EINVAL or EPERM. */
|
---|
11 | default: return thrd_error;
|
---|
12 | case 0: return thrd_success;
|
---|
13 | case ETIMEDOUT: return thrd_timedout;
|
---|
14 | }
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.