This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Patch: Another AWT patch




On Monday, July 31, 2000 1:05 AM, Bryce McKinlay [SMTP:bryce@albatross.co.nz] 
wrote:
> I'm not 100% sure how the treelock is supposed to work, but there
> shouldn't be one for every component. I think making it a static field
> with an initializer should be sufficient for now.

Right.  The book says "It is a global lock and is shared by all live 
components running in the system (or more precisely, from one class loader)". 
 I agree that Rolf's implementation is fine.  I was just going to new 
Object(), but I can see how it might be nice to have a String.  I'll fix it 
today.

AG


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]