Re: PR_CreateThread -> PR_DestroyThread
Benjamin Smedberg <[email protected]> Thu, 15 Apr 2010 15:18:59 -0400
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On 4/15/10 2:40 PM, Mike Moening wrote: > Ok.... But seems that PR_JoinThread() doens't cleanup the PRThread* either. > Who does? By clean up, you mean "deallocate memory associated with that PRThread* within NSPR?" I don't know if NSPR can clean up that memory until shutdown time (PR_Cleanup): typical programs don't create lots of short-lived threads where this would be an issue. The actual OS resources associated with a thread, however, should be cleaned up by the time PR_JoinThread returns. --BDS