News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Unused function in SDK?

Started by rickg22, June 22, 2007, 07:05:46 AM

Previous topic - Next topic

rickg22

OK can someone explain to me why is this function in our codebase?  :lol:


    /*
    * 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 :)

MortenMacFly

#1
Quote from: rickg22 on June 22, 2007, 07:05:46 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". ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]