src/hotspot/share/runtime/os.hpp
changeset 58095 adc72cd1d1f2
parent 58084 cddef3bde924
child 58107 69c38b90014c
child 58196 cea6839598e8
equal deleted inserted replaced
58094:0f6c749acd15 58095:adc72cd1d1f2
   462   static void free_thread(OSThread* osthread);
   462   static void free_thread(OSThread* osthread);
   463 
   463 
   464   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
   464   // thread id on Linux/64bit is 64bit, on Windows and Solaris, it's 32bit
   465   static intx current_thread_id();
   465   static intx current_thread_id();
   466   static int current_process_id();
   466   static int current_process_id();
   467   // Implementation of java.lang.Thread.sleep for JavaThreads
   467 
   468   static int sleep(JavaThread* thread, jlong ms);
       
   469   // Short standalone OS sleep routines suitable for slow path spin loop.
   468   // Short standalone OS sleep routines suitable for slow path spin loop.
   470   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
   469   // Ignores safepoints/suspension/Thread.interrupt() (so keep it short).
   471   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
   470   // ms/ns = 0, will sleep for the least amount of time allowed by the OS.
   472   // Maximum sleep time is just under 1 second.
   471   // Maximum sleep time is just under 1 second.
   473   static void naked_short_sleep(jlong ms);
   472   static void naked_short_sleep(jlong ms);