> > I have a few questions about the memory management of libevent.
> >
> > 1) I replaced the memory functions of libvevent using
> > event_set_mem_functions() with my own functions and I added a counter for
> > malloc, realloc and free (Yes, I implemented the special cases realloc(NULL,
> > size)
Of course.
Unit tests run fine too.
/Juan
2012/10/25 Nick Mathewson :
> On Thu, Oct 25, 2012 at 2:15 PM, Juan Pablo Fernandez
> wrote:
>> Ok.
>>
>> How about this:
>>
>> --- listener.c 2012-07-26 16:24:04.0 +0200
>> +++ listener.c.fix 2012-10-25 15:05:24.809285000 +0200
>> @@ -74
On Thu, Oct 25, 2012 at 3:01 PM, Jan Danielsson
wrote:
> Hello,
>
>I figured out one can run "nmake -f makefile.nmake" to get static
> libraries which may or may not work (according to the makefile).
I've had reports that they work, but I'd really like some windows
person with more build expe
On Thu, Oct 25, 2012 at 2:21 PM, Bruno Avila wrote:
> Hi all.
>
> I have a few questions about the memory management of libevent.
>
> 1) I replaced the memory functions of libvevent using
> event_set_mem_functions() with my own functions and I added a counter for
> malloc, realloc and free (Yes, I
On Thu, Oct 25, 2012 at 2:15 PM, Juan Pablo Fernandez
wrote:
> Ok.
>
> How about this:
>
> --- listener.c 2012-07-26 16:24:04.0 +0200
> +++ listener.c.fix 2012-10-25 15:05:24.809285000 +0200
> @@ -741,6 +741,9 @@
> }
> LeaveCriticalSection(&as->lock);
Hello,
I figured out one can run "nmake -f makefile.nmake" to get static
libraries which may or may not work (according to the makefile). But is
there an official way to build DLLs?
--
Kind regards,
Jan Danielsson
***
To uns
Hi all.
I have a few questions about the memory management of libevent.
1) I replaced the memory functions of libvevent using *
event_set_mem_functions()* with my own functions and I added a counter for
malloc, realloc and free (Yes, I implemented the special cases
realloc(NULL, size) and realloc
Ok.
How about this:
--- listener.c 2012-07-26 16:24:04.0 +0200
+++ listener.c.fix 2012-10-25 15:05:24.809285000 +0200
@@ -741,6 +741,9 @@
}
LeaveCriticalSection(&as->lock);
}
+
+ if (shutdown && lev->flags & LEV_OPT_CLOSE_ON_FREE)
+