Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on June 22, 2007, 07:05:46 am

Title: Unused function in SDK?
Post by: rickg22 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 :)
Title: Re: Unused function in SDK?
Post by: MortenMacFly 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". ;-)