Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #643: IgnoreExternal.diff

File IgnoreExternal.diff, 1.2 kB (added by CyberShadow, 1 year ago)

Failed attempt #1

  • Thread.d

    old new  
    15971597     */ 
    15981598    void suspend( Thread t ) 
    15991599    { 
     1600        if( t is null ) 
     1601            return; 
     1602 
    16001603        version( Win32 ) 
    16011604        { 
    16021605            if( t.m_addr != GetCurrentThreadId() && SuspendThread( t.m_hndl ) == 0xFFFFFFFF ) 
     
    17411744     */ 
    17421745    void resume( Thread t ) 
    17431746    { 
     1747        if( t is null ) 
     1748            return; 
     1749 
    17441750        version( Win32 ) 
    17451751        { 
    17461752            if( t.m_addr != GetCurrentThreadId() && ResumeThread( t.m_hndl ) == 0xFFFFFFFF ) 
     
    18261832    if( curStackTop && Thread.sm_tbeg ) 
    18271833    { 
    18281834        thisThread  = Thread.getThis(); 
    1829         if( !thisThread.m_lock ) 
     1835        if( thisThread && !thisThread.m_lock ) 
    18301836        { 
    18311837            oldStackTop = thisThread.m_curr.tstack; 
    18321838            thisThread.m_curr.tstack = curStackTop; 
     
    18371843    { 
    18381844        if( curStackTop && Thread.sm_tbeg ) 
    18391845        { 
    1840             if( !thisThread.m_lock ) 
     1846            if( thisThread && !thisThread.m_lock ) 
    18411847            { 
    18421848                thisThread.m_curr.tstack = oldStackTop; 
    18431849            }