82 |
|
*/ |
83 |
|
static native void park(boolean isAbsolute, long time); |
84 |
|
|
85 |
+ |
static void parkNode(ReentrantLockQueueNode node, boolean isAbsolute, long time) { |
86 |
+ |
park(isAbsolute, time); |
87 |
+ |
} |
88 |
+ |
|
89 |
|
/** |
90 |
|
* Native implementation of thread-unblocking primitive used in |
91 |
|
* ReentrantLock (and possibly elsewhere). Unblock the given |
95 |
|
*/ |
96 |
|
static native void unpark(Object thread); |
97 |
|
|
98 |
+ |
static void unparkNode(ReentrantLockQueueNode node) { |
99 |
+ |
unpark(node.thread); |
100 |
+ |
} |
101 |
+ |
|
102 |
|
/** |
103 |
|
* Implementation of Locks.mightBeLocked. |
104 |
|
*/ |