equal
deleted
inserted
replaced
472 static int sleep(Thread* thread, jlong ms, bool interruptable); |
472 static int sleep(Thread* thread, jlong ms, bool interruptable); |
473 // Short standalone OS sleep suitable for slow path spin loop. |
473 // Short standalone OS sleep suitable for slow path spin loop. |
474 // Ignores Thread.interrupt() (so keep it short). |
474 // Ignores Thread.interrupt() (so keep it short). |
475 // ms = 0, will sleep for the least amount of time allowed by the OS. |
475 // ms = 0, will sleep for the least amount of time allowed by the OS. |
476 static void naked_short_sleep(jlong ms); |
476 static void naked_short_sleep(jlong ms); |
|
477 static void naked_short_nanosleep(jlong ns); |
477 static void infinite_sleep(); // never returns, use with CAUTION |
478 static void infinite_sleep(); // never returns, use with CAUTION |
478 static void naked_yield () ; |
479 static void naked_yield () ; |
479 static OSReturn set_priority(Thread* thread, ThreadPriority priority); |
480 static OSReturn set_priority(Thread* thread, ThreadPriority priority); |
480 static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority); |
481 static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority); |
481 |
482 |