More flexibility by using a Lock
←Older revision | Revision as of 19:57, 25 April 2010 | ||
Line 43: | Line 43: | ||
My two [[wikipedia::Czech_koruna|Kč]]. | My two [[wikipedia::Czech_koruna|Kč]]. | ||
--[[User:JaroslavTulach|JaroslavTulach]] 19:45, 22 April 2010 (UTC) | --[[User:JaroslavTulach|JaroslavTulach]] 19:45, 22 April 2010 (UTC) | ||
+ | |||
+ | There are static [[factory]] methods available for creating the ReenterableLock and the ReenterableDualLock, as well as the ReenterableReadWriteLock that supports the Sun Microsystems ReadWriteLock interface. I separate the [[ClientAPI]] as public methods from the [[ProviderAPI]] as protected methods. Most of the protected methods are abstract to allow a provider to offer an alternative implementation through subclassing. The default implementation provides enough information for an alternative provider to add more functionality through subclassing. Please remember that this library has a very limited purpose of protecting threads and virtual tasks from stepping on each other. As it stands now, it is easy to start using it as is, and to add more stuff to it as needed. Thank you. Jeffrey D. Smith |