dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/Xsharp Display.cs,1.14,1.15


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/Xsharp Display.cs,1.14,1.15
Date: Tue, 02 Dec 2003 05:13:00 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/Xsharp
In directory subversions:/tmp/cvs-serv11048/Xsharp

Modified Files:
        Display.cs 
Log Message:


Remove the "inMainLoop" check because it was preventing the main loop
from re-entering itself on the same thread.


Index: Display.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/Xsharp/Display.cs,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** Display.cs  29 Nov 2003 10:34:54 -0000      1.14
--- Display.cs  2 Dec 2003 05:12:57 -0000       1.15
***************
*** 45,49 ****
        private bool quit;
        private bool pendingExposes;
-       private bool inMainLoop;
        private InputOutputWidget exposeList;
        private Xlib.Cursor[] cursors;
--- 45,48 ----
***************
*** 505,509 ****
        private AppEvent HandleNextEvent(bool wait)
                        {
-                               bool isMainLoop = false;
                                try
                                {
--- 504,507 ----
***************
*** 512,523 ****
                                        int timeout;
  
-                                       // Check for re-entry from multiple 
threads.
-                                       if(inMainLoop)
-                                       {
-                                               return AppEvent.NoEvent;
-                                       }
-                                       isMainLoop = true;
-                                       inMainLoop = true;
- 
                                        // Flush any requests that are in the 
outgoing queue.
                                        Xlib.XFlush(dpy);
--- 510,513 ----
***************
*** 628,635 ****
                                finally
                                {
-                                       if(isMainLoop)
-                                       {
-                                               inMainLoop = false;
-                                       }
                                        Unlock();
                                }
--- 618,621 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]