Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Any suggestions: locking??



Hi all,

I am compiling with the javac tool on a pc with 1.4.2 I use -target 1.1 as well as -bootclasspath
with the JDKClasses.zip from the MRJ distro.  Anyhow it compiles and runs great on the pc, but on
the mac i have the following strangeness, if anyone have any ideas it would help a lot.  I am
stumped...

The code executes and prints out 1 2 & 3, it never prints out the 4 instead it just hangs.  I
don't know how to work out the strangeness it seems like it's locking on trying to release the
lock!??

	public void addOperation( final Operation_i operation ) {
		PrinterAid.print( "addOperation 1> " + operation );
		synchronized( MUTEX ) {
			PrinterAid.print( "addOperation 2> " + operation );
			_operations.addElement( operation );
			PrinterAid.print( "addOperation 3> " + operation );
		}
		PrinterAid.print( "addOperation 4> " + operation );
	}

This is being called from the main()


Thanks,
Levi

__________________________________________


		
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.