bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting a non-autofree thread


From: Chad Pettit
Subject: Re: Deleting a non-autofree thread
Date: Mon, 21 Oct 2002 16:05:14 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Yes.  A thread that does not do a delete this in its final method.

Currently, I am doing a delete thread once the main thread retrieves some information off of the processing thread.  This; however, only works for the first 512 threads.  After that I am getting a resource allocation error.  To me, this indicates that the thread is not being completely destroyed, since the thread limit should not come into play as long as the threads are being cleaned up properly.

Federico Montesino Pouzols wrote:
On Mon, Oct 21, 2002 at 11:11:54AM -0400, Chad Pettit wrote:
  
What is the proper way to delete a non-autofree thread?  
    

	Do you mean a thread that does not do 'delete this' in its
final() method? Normally, threads can be deleted using 'delete
thread' if they are dynamically created.

  
I have tried 
several combo's with endStream(), terminate(), endSocket() and others 
and nothing appears to be working.  I get an out of resource error when 
I would try to allocate another thread.  I am using TCSession.



_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp
    


_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp

  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]