Re: [Dar-discussions] Re: Fwd: I would like to cancel archive creation
Denis Corbin <[email protected]> Tue, 29 Jun 2004 19:54:53 +0200
| Newsgroups | gmane.comp.sysutils.backup.dar.libdar |
|---|---|
| Organization | none |
| Message-ID | <[email protected]> |
Johnathan Burchill wrote: > On June 28, 2004 03:02 pm, Johnathan Burchill wrote: > >>>By the way, note that the mutex used by libdar (and common to all >>>threads) are never released. If this is a problem it might be possible >>>to add a call in the API to release them and in consequence forbid any >>>further call to libdar. The mutex used do not take much memory place >>>however. >> >>In other words, the mutexes are created on the stack? in fact the mutex is a static variable of the special_alloc.cpp module it is pthread_mutex_init() initialized, but never pthread_mutex_destroy()ed. >> > > Sorry, I meant the heap. Sure. Here if I don't make any mistake the mutex is created in the data segment, but the pthread_mutex_init may use the heap to activate the mutex... > > JB ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com