On 2002-03-14 07:54:38 +0200, Isaac Aaron wrote:
> 
> This is my example of pthread not releasing memory resources when the
> thread function exits.

<snip/>

> I am supposed to call a certain function to have the memory released?

The return code of the thread is held when the thread exits.  You need
to either call pthread_join() to get the return code, or call
pthread_detach() on the thread so that it runs in the detatched state.

-- 
Shane
Carpe Diem
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to