Thread.destroy()

    Date: 11/13/07 (Code WTF)    Keywords: no keywords

    Интересный способ выхода из треда. Язык -- жава.

            statusUpdate = new Thread() {
                public void run() {
                    while (runUpdate) {
                        // [code skipped]
                    }
                    // [code skipped]
                    Thread.currentThread().destroy();
                    return;
                }
            };
    

    Source: http://community.livejournal.com/code_wtf/113334.html

« CSS и новое... || JavaScript,... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home