Author Topic: Unused function in SDK?  (Read 3274 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Unused function in SDK?
« on: June 22, 2007, 07:05:46 am »
OK can someone explain to me why is this function in our codebase?  :lol:

Code
    /*
    * This function is inherently unsafe!
    * Also, if used on a thread belonging to a pool, it will not do what you think it does!
    * Do not use this function unless you are sure you really know what you are doing.
    */
    void MurderDeathKill()
    {
        Die();
        wxMilliSleep(0);
        wxMilliSleep(0);

        if(this && IsRunning())
            Kill();
    };

Edit: Not that it's bad at all, it just looked so... funny :)
« Last Edit: June 22, 2007, 07:15:10 am by rickg22 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Unused function in SDK?
« Reply #1 on: June 22, 2007, 08:11:31 am »
Edit: Not that it's bad at all, it just looked so... funny :)
Sounds very much like Thomas to me... ;-) It's at least his kind of humor.. :lol: :lol: :lol:

Edit: Added forgotten "unds". ;-)
« Last Edit: June 22, 2007, 12:12:41 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ