ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/JSR166Support.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/JSR166Support.java (file contents):
Revision 1.2 by dl, Tue Jun 24 14:34:48 2003 UTC vs.
Revision 1.3 by dl, Sat Jun 28 15:33:31 2003 UTC

# Line 82 | Line 82 | final class JSR166Support {
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
# Line 91 | Line 95 | final class JSR166Support {
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       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines