Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#438 Poco::Thread::join must be called after start

open
nobody
5
2012-09-14
2011-03-24
Anonymous
No

At least on linux, after you start a thread with Poco::Thread::start, you must call Poco::Thread::join, even if you know that the thread ended already. Failure to call join will cause a memory leak. I haven't seen any reference to it in the documentation.

Attached is a small sample app.

This is confirmed in the pthread documentation:
http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html

Discussion


  • Anonymous
    2011-03-24

    Sample app.

     
    Last edit: Anonymous 2014-03-23
    Attachments