----------------------------------------- (on server-express.q-bytes.com) This mail was scanned by Trend Micro InterScan VirusWall when leaving Quality Bytes
---------------------------------------------------------
Every thread takes about 2K of VSize, and I'm returning a void. Do I still need to detach from it? Isaac (Itzik) Aaron Quality Bytes TEL: +972-3-952 3175 FAX: +972-3-952 3176 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Shane Kerr > Sent: Thursday, March 14, 2002 10:53 AM > To: [EMAIL PROTECTED] > Subject: Re: Claiming back memory resources after a thread function exits. > > > 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]
BEGIN:VCARD VERSION:2.1 N:Aaron;Isaac (Itzik) FN:Isaac (Itzik) Aaron ORG:Quality Bytes Software LTD TITLE:Head of Development TEL;WORK;VOICE:+972 (3) 952 3175 TEL;CELL;VOICE:+972 (53) 33 22 14 TEL;WORK;FAX:+972 (3) 952 3176 ADR;WORK:;;10 Moshe Levi st.;Rishon Lezziyon;;;Israel LABEL;WORK;ENCODING=QUOTED-PRINTABLE:10 Moshe Levi st.=0D=0ARishon Lezziyon=0D=0AIsrael URL: URL:http://www.q-bytes.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010814T082349Z END:VCARD