src/hotspot/share/runtime/thread.hpp
branchJEP-349-branch
changeset 58204 5d1f1ff2ad55
parent 58156 68031e660872
parent 58196 cea6839598e8
child 58249 e17143e28542
equal deleted inserted replaced
58201:2654d1b665bf 58204:5d1f1ff2ad55
   512   static void check_for_dangling_thread_pointer(Thread *thread);
   512   static void check_for_dangling_thread_pointer(Thread *thread);
   513 #endif
   513 #endif
   514   static void set_priority(Thread* thread, ThreadPriority priority);
   514   static void set_priority(Thread* thread, ThreadPriority priority);
   515   static ThreadPriority get_priority(const Thread* const thread);
   515   static ThreadPriority get_priority(const Thread* const thread);
   516   static void start(Thread* thread);
   516   static void start(Thread* thread);
   517   static void interrupt(Thread* thr);
       
   518   static bool is_interrupted(Thread* thr, bool clear_interrupted);
       
   519 
   517 
   520   void set_native_thread_name(const char *name) {
   518   void set_native_thread_name(const char *name) {
   521     assert(Thread::current() == this, "set_native_thread_name can only be called on the current thread");
   519     assert(Thread::current() == this, "set_native_thread_name can only be called on the current thread");
   522     os::set_native_thread_name(name);
   520     os::set_native_thread_name(name);
   523   }
   521   }
  2053 
  2051 
  2054 private:
  2052 private:
  2055   InstanceKlass* _class_to_be_initialized;
  2053   InstanceKlass* _class_to_be_initialized;
  2056 
  2054 
  2057   // java.lang.Thread.sleep support
  2055   // java.lang.Thread.sleep support
       
  2056   ParkEvent * _SleepEvent;
  2058 public:
  2057 public:
  2059   ParkEvent * _SleepEvent;
       
  2060   bool sleep(jlong millis);
  2058   bool sleep(jlong millis);
       
  2059 
       
  2060   // java.lang.Thread interruption support
       
  2061   void interrupt();
       
  2062   bool is_interrupted(bool clear_interrupted);
       
  2063 
  2061 };
  2064 };
  2062 
  2065 
  2063 // Inline implementation of JavaThread::current
  2066 // Inline implementation of JavaThread::current
  2064 inline JavaThread* JavaThread::current() {
  2067 inline JavaThread* JavaThread::current() {
  2065   Thread* thread = Thread::current();
  2068   Thread* thread = Thread::current();