source: azure_iot_hub/trunk/musl-1.1.18/src/time/timer_delete.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: 303 bytes
Line 
1#include <time.h>
2#include <limits.h>
3#include "pthread_impl.h"
4
5int timer_delete(timer_t t)
6{
7 if ((intptr_t)t < 0) {
8 pthread_t td = (void *)((uintptr_t)t << 1);
9 a_store(&td->timer_id, td->timer_id | INT_MIN);
10 __wake(&td->timer_id, 1, 1);
11 return 0;
12 }
13 return __syscall(SYS_timer_delete, t);
14}
Note: See TracBrowser for help on using the repository browser.