Changeset 73

Show
Ignore:
Timestamp:
10/09/08 14:46:15 (3 months ago)
Author:
Chris Miller
Message:

Worked around issue with DMD 2.x compilers: Thread.getThis() call removed.
Events originating from Application no longer use the current Thread as the sender object.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/win32/dfl/application.d

    r72 r73  
    539539                     
    540540                    // Stopped running. 
    541                     threadExit(Thread.getThis(), EventArgs.empty); 
     541                    threadExit(typeid(Application), EventArgs.empty); 
    542542                    threadFlags = threadFlags & ~(TF.RUNNING | TF.STOP_RUNNING); 
    543543                    return; 
     
    777777            // will be there still when the exception is recovered from. 
    778778            // This is very important for some messages, such as socket events. 
    779             thread1 = Thread.getThis(); 
     779            thread1 = Thread.getThis(); // Problems with DMD 2.x 
    780780            Thread thd; 
    781781            version(Tango) 
     
    902902        if(threadException.hasHandlers) 
    903903        { 
    904             threadException(Thread.getThis(), new ThreadExceptionEventArgs(e)); 
     904            threadException(typeid(Application), new ThreadExceptionEventArgs(e)); 
    905905            except = false; 
    906906            return; 
     
    12081208            return; 
    12091209         
    1210         idle(Thread.getThis(), EventArgs.empty); 
     1210        idle(typeid(Application), EventArgs.empty); 
    12111211        WaitMessage(); 
    12121212    }