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

[Libevent-users] the usage of ev_pncalls in struct event



hi all:
  what's the usage of ev_pncalls in struct event? why not direct
use ev_ncalls?

two question:
1. in libevent 1.4.14, it seems only used in event_process_active(),
but in libeven2 it used in event_signal_closure. why?
2. Â Â Â Â ev->ev_pncalls = &ncalls; Â// from event_process_active()
here, ncalls is a stack variable.

     Âif (ev->ev_ncalls && ev->ev_pncalls) {
       Â/* Abort loop */
       Â*ev->ev_pncalls = 0;   // Âev.ev_pncalls point to a
stack variable, will this cover the stack?
     Â}

thanks!
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.