< prev index next >
src/hotspot/share/runtime/thread.hpp
Print this page
*** 512,523 ****
static void check_for_dangling_thread_pointer(Thread *thread);
#endif
static void set_priority(Thread* thread, ThreadPriority priority);
static ThreadPriority get_priority(const Thread* const thread);
static void start(Thread* thread);
- static void interrupt(Thread* thr);
- static bool is_interrupted(Thread* thr, bool clear_interrupted);
void set_native_thread_name(const char *name) {
assert(Thread::current() == this, "set_native_thread_name can only be called on the current thread");
os::set_native_thread_name(name);
}
--- 512,521 ----
*** 2053,2065 ****
private:
InstanceKlass* _class_to_be_initialized;
// java.lang.Thread.sleep support
- public:
ParkEvent * _SleepEvent;
bool sleep(jlong millis);
};
// Inline implementation of JavaThread::current
inline JavaThread* JavaThread::current() {
Thread* thread = Thread::current();
--- 2051,2068 ----
private:
InstanceKlass* _class_to_be_initialized;
// java.lang.Thread.sleep support
ParkEvent * _SleepEvent;
+ public:
bool sleep(jlong millis);
+
+ // java.lang.Thread interruption support
+ void interrupt();
+ bool is_interrupted(bool clear_interrupted);
+
};
// Inline implementation of JavaThread::current
inline JavaThread* JavaThread::current() {
Thread* thread = Thread::current();
< prev index next >