From 699344840b7bebfeedccdda79a1144fc576b7ceb Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka <gniibe@fsij.org> Date: Tue, 28 May 2013 10:27:22 +0900 Subject: Implement cancellation. Rename, etc. --- example-led/sample.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'example-led') diff --git a/example-led/sample.c b/example-led/sample.c index c4ca7bf..8c994ce 100644 --- a/example-led/sample.c +++ b/example-led/sample.c @@ -22,9 +22,9 @@ pwm (void *arg) while (1) { set_led (u&v); - chopstx_usleep (m); + chopstx_usec_wait (m); set_led (0); - chopstx_usleep (100-m); + chopstx_usec_wait (100-m); } return NULL; @@ -42,9 +42,9 @@ blk (void *arg) while (1) { v = 0; - chopstx_usleep (200*1000); + chopstx_usec_wait (200*1000); v = 1; - chopstx_usleep (200*1000); + chopstx_usec_wait (200*1000); } return NULL; @@ -89,7 +89,7 @@ main (int argc, const char *argv[]) chopstx_create (&thd, &attr, blk, NULL); - chopstx_usleep (200*1000); + chopstx_usec_wait (200*1000); chopstx_mutex_lock (&mtx); chopstx_cond_signal (&cnd0); @@ -99,7 +99,7 @@ main (int argc, const char *argv[]) while (1) { u ^= 1; - chopstx_usleep (200*1000*6); + chopstx_usec_wait (200*1000*6); } return 0; -- cgit v1.2.3