Commit 5ce7aff6 authored by yoogx's avatar yoogx

* Minor reformatting

parent 988c7f77
......@@ -5,7 +5,7 @@
*
* For more informations, please visit http://taste.tuxfamily.org/wiki
*
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2014 ESA & ISAE.
* Copyright (C) 2007-2009 Telecom ParisTech, 2010-2015 ESA & ISAE.
*/
#if defined (__CYGWIN__) || defined (__MINGW32__)
......@@ -186,7 +186,6 @@ int __po_hi_delay_until (const __po_hi_time_t* time)
int ret;
timer.tv_sec = time->sec;
timer.tv_nsec = time->nsec;
if (pthread_mutex_init (&mutex, NULL) != 0)
......@@ -228,8 +227,10 @@ int __po_hi_delay_until (const __po_hi_time_t* time)
ret = __PO_HI_ERROR_PTHREAD_MUTEX;
}
return (ret);
#elif defined (RTEMS_PURE)
return (__PO_HI_UNAVAILABLE);
#elif defined (XENO_NATIVE)
int ret;
ret = rt_task_sleep_until (rt_timer_ns2tsc ( (time->sec * 1000000000) + time->nsec));
......@@ -239,6 +240,7 @@ int __po_hi_delay_until (const __po_hi_time_t* time)
return (__PO_HI_ERROR_PTHREAD_COND);
}
return (__PO_HI_SUCCESS);
#elif defined (_WIN32)
HANDLE hTimer = NULL;
LARGE_INTEGER ularge;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment