Ignore:
Timestamp:
Dec 30, 2011, 10:44:51 AM (14 years ago)
Author:
dmik
Message:

winmm: Disable forceful termination of timer threads.

This is absolutely unnecessary and may cause resource leaks
eventually leading to the application hang or crash.

The above symptoms are known to happen in Adobe Flash applications
which use a lot of timers which are started/stopped at a very high rate.
This fix gets rid of these symptoms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/winmm/os2timer.cpp

    r10269 r21930  
    388388  StopTimer();
    389389 
    390   if(DosPostEventSem(TimerSem))
    391   { 
    392     //something went wrong, kill the thread
    393     TerminateThread(hTimerThread, -1);
    394   }
     390  DosPostEventSem(TimerSem);
     391
    395392  TimerStatus = InActive;
    396393}
     
    499496  //release object
    500497  release();
    501  
    502   // mark this thread as terminated
    503   ExitThread(0);
    504498}
    505499//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.