Creating a timer within a module

Alejandro Pérez Méndez alex at um.es
Tue May 9 15:01:27 CEST 2017



El 09/05/17 a las 14:57, Alan DeKok escribió:
> On May 9, 2017, at 7:10 AM, Alejandro Pérez Méndez <alex at um.es> wrote:
>> Ok I think I got it. Was your suggestion to use the event list for having the timer functionality, but then on the event handler start/use a custom thread for performing the lengthy operation?
>    If the work to be done is small, it can just use the main thread, and the main event loop.
>
>    If the work to be done is large, the module should start it's own thread, and use it's own event loop.
Thanks. My case would be the second one, so would not need to call 
radius_event_list_corral() as a new event loop must be created.

Alejandro

>
>    Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html



More information about the Freeradius-Devel mailing list