< prev index next >

src/hotspot/share/runtime/os.hpp

Print this page




 450   static bool is_primordial_thread(void)
 451 #if defined(_WINDOWS) || defined(BSD)
 452     // No way to identify the primordial thread.
 453     { return false; }
 454 #else
 455   ;
 456 #endif
 457 
 458   static bool create_attached_thread(JavaThread* thread);
 459   static void pd_start_thread(Thread* thread);
 460   static void start_thread(Thread* thread);
 461 
 462   // Returns true if successful.
 463   static bool signal_thread(Thread* thread, int sig, const char* reason);
 464 
 465   static void free_thread(OSThread* osthread);
 466 
 467   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
 468   static intx current_thread_id();
 469   static int current_process_id();
 470   // Implementation of java.lang.Thread.sleep for JavaThreads
 471   static int sleep(JavaThread* thread, jlong ms);
 472   // Short standalone OS sleep routines suitable for slow path spin loop.
 473   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
 474   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
 475   // Maximum sleep time is just under 1 second.
 476   static void naked_short_sleep(jlong ms);
 477   static void naked_short_nanosleep(jlong ns);
 478   // Longer standalone OS sleep routine - a convenience wrapper around
 479   // multiple calls to naked_short_sleep. Only for use by non-JavaThreads.
 480   static void naked_sleep(jlong millis);
 481   // Never returns, use with CAUTION
 482   static void infinite_sleep();
 483   static void naked_yield () ;
 484   static OSReturn set_priority(Thread* thread, ThreadPriority priority);
 485   static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority);
 486 
 487   static void interrupt(Thread* thread);
 488   static bool is_interrupted(Thread* thread, bool clear_interrupted);
 489 
 490   static int pd_self_suspend_thread(Thread* thread);
 491 




 450   static bool is_primordial_thread(void)
 451 #if defined(_WINDOWS) || defined(BSD)
 452     // No way to identify the primordial thread.
 453     { return false; }
 454 #else
 455   ;
 456 #endif
 457 
 458   static bool create_attached_thread(JavaThread* thread);
 459   static void pd_start_thread(Thread* thread);
 460   static void start_thread(Thread* thread);
 461 
 462   // Returns true if successful.
 463   static bool signal_thread(Thread* thread, int sig, const char* reason);
 464 
 465   static void free_thread(OSThread* osthread);
 466 
 467   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
 468   static intx current_thread_id();
 469   static int current_process_id();
 470 

 471   // Short standalone OS sleep routines suitable for slow path spin loop.
 472   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
 473   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
 474   // Maximum sleep time is just under 1 second.
 475   static void naked_short_sleep(jlong ms);
 476   static void naked_short_nanosleep(jlong ns);
 477   // Longer standalone OS sleep routine - a convenience wrapper around
 478   // multiple calls to naked_short_sleep. Only for use by non-JavaThreads.
 479   static void naked_sleep(jlong millis);
 480   // Never returns, use with CAUTION
 481   static void infinite_sleep();
 482   static void naked_yield () ;
 483   static OSReturn set_priority(Thread* thread, ThreadPriority priority);
 484   static OSReturn get_priority(const Thread* const thread, ThreadPriority& priority);
 485 
 486   static void interrupt(Thread* thread);
 487   static bool is_interrupted(Thread* thread, bool clear_interrupted);
 488 
 489   static int pd_self_suspend_thread(Thread* thread);
 490 


< prev index next >