Project

General

Profile

Revision 506

Added by Greg Tress about 16 years ago

Testing synchronization in webcam update

View differences:

Colonet.java
862 862
			super();
863 863
		}
864 864
		
865
		public void setImage (BufferedImage newimg) {
865
		public synchronized void setImage (BufferedImage newimg) {
866 866
			if (img != null) {
867 867
				img.flush();
868 868
			}
......
871 871
		}
872 872
		
873 873
				
874
		public void paint (Graphics g) {
874
		public synchronized void paint (Graphics g) {
875 875
			
876 876
			if (img == null)
877 877
				return;

Also available in: Unified diff