/[classpath]/classpath/gnu/java/awt/peer/gtk/GtkMainThread.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GtkMainThread.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by saugart, Wed Jul 7 04:26:40 2004 UTC revision 1.13 by mark, Fri Jul 9 11:07:50 2004 UTC
# Line 43  public class GtkMainThread extends GtkGe Line 43  public class GtkMainThread extends GtkGe
43    private static Thread mainThread = null;    private static Thread mainThread = null;
44    private static Object mainThreadLock = new Object();    private static Object mainThreadLock = new Object();
45    
46      // Whether the gtk+ subsystem has been initialized.
47      private boolean gtkInitCalled = false;
48    
49    /**    /**
50     * Call gtk_init.  It is very important that this happen before any other     * Call gtk_init.  It is very important that this happen before any other
51     * gtk calls.     * gtk calls.
# Line 67  public class GtkMainThread extends GtkGe Line 70  public class GtkMainThread extends GtkGe
70      synchronized (this)      synchronized (this)
71        {        {
72          mainThread.start();          mainThread.start();
73          try {          
74            wait();          while (!gtkInitCalled)
75          } catch (InterruptedException e) { }            {
76                try
77                  {
78                    wait();
79                  }
80                catch (InterruptedException e) { }
81              }
82        }        }
83    }    }
84        
# Line 91  public class GtkMainThread extends GtkGe Line 100  public class GtkMainThread extends GtkGe
100      synchronized (this)      synchronized (this)
101        {        {
102          gtkInit(portableNativeSync);          gtkInit(portableNativeSync);
103          notify();          gtkInitCalled = true;
104            notifyAll();
105        }        }
106      gtkMain();      gtkMain();
107    }    }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26