event source code

the entity described by the event object

  1. document
  2. Signal
  3. The objects described by the timeout
      libevent are these three files, signals, and timeouts. Then in the event_add function, the corresponding event structure will also be inserted into the corresponding queue. Among them, the IO queue is convenient to find the event related to the file descriptor for the first time when the same file descriptor is ready. The signal queue is also used to find all events when the same signal occurs, and the timeout event is managed by the timeout heap. .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324613686&siteId=291194637