[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Replacement for event_init?



On Thu, Feb 20, 2014 at 2:43 PM, Scott Dorr <j.scott.dorr@xxxxxxxxx> wrote:
> event_base_new() does all the initialization you need to use that base.
>
Thanks Scott.

Forgive my ignorance here. Does the library need to be initialized
(beyond base initialization)? If so, what is the function (I can only
find the deprecated/obsolete function).

I probably should have stated this earlier: I'm using 2.0.21-stable.

Another question (if you'll forgive the transgression): what is the
official email address for the list? I noticed two are in play
(freehaven.net and seul.org).

Jeff

> On Feb 20, 2014, at 12:25 PM, Jeffrey Walton <noloader@xxxxxxxxx> wrote:
>
>> Thanks gentleman.
>>
>> So I'm clear: there is no *_init() function. I just start using the
>> library and everything just works.
>>
>> On Thu, Feb 20, 2014 at 12:36 PM, Scott Dorr <j.scott.dorr@xxxxxxxxx> wrote:
>>> That same page tells you to use event_base_new() instead.
>>>
>>> Any calls that assume a default/current base instead of explicitly calling out a base have been deprecated.  So, instead of using âevent_init()â which is non-specific, use âevent_base_new()â for each event base youâd like to set up.
>>>
>>> - scott
>>>
>>>
>>> On Feb 20, 2014, at 10:16 AM, Jeffrey Walton <noloader@xxxxxxxxx> wrote:
>>>
>>>> http://www.wangafu.net/~nickm/libevent-book/Ref2_eventbase.html states
>>>> that event_init is obsolete. But it does not state what should be
>>>> called in its place (and the source code appears to continue using
>>>> it).
>>>>
>>>> I found a shutdown function in libevent_global_shutdown. But I did not
>>>> find a libevent_global_startup to match libevent_global_shutdown.
>>>>
>>>> What function should be called for initialization?
>>>>
>>>> Thanks in advance.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.