Message9846

Author jmadden
Recipients jmadden, zyasoft
Date 2015-04-14.19:19:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429039148.58.0.3291274548.issue2328@psf.upfronthosting.co.za>
In-reply-to
Content
The j.u.c.locks.ReentrantLock class is built upon the standard AbstractQueuedSynchronizer class. The current JavaDoc for that class (http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/AbstractQueuedSynchronizer.html) defines a complete /non-reentrant/ implementation of the j.u.c.locks.Lock interface, including Condition support. It's only a dozen or so lines and can be unlocked by any thread.

Perhaps that could form the basis for the threading.Lock instead of a Semaphore?
History
Date User Action Args
2015-04-14 19:19:08jmaddensetmessageid: <1429039148.58.0.3291274548.issue2328@psf.upfronthosting.co.za>
2015-04-14 19:19:08jmaddensetrecipients: + jmadden, zyasoft
2015-04-14 19:19:08jmaddenlinkissue2328 messages
2015-04-14 19:19:08jmaddencreate