05 Libevent library pending and non-pending interpretation

05 Libevent library pending and non-pending interpretation

以下是关于libevent学习的相关文章:
01 Download and installation of the libevent library and test whether the installation is successful
02 The overall framework idea of ​​the libevent library
03 The main function of
communication
under the
libevent Area features introduction
07libevent library related functions of the bufferevent event
08libevent library communication server and client main functions
09libevent library server and client TCP communication process and code examples

1 Concept interpretation
pending: eligible to be processed, but not yet processed.
Non-pending: Not eligible to be processed.

2 Combine the functions of the libevent library to explain.
Because it is lazy to look at the picture, I have to draw another picture. Just look at my screenshot. Basically it can be seen clearly.
Here is an explanation. For example, after a new event is created, since it has not been added to the base monitor, it is impossible to happen, so it is not in a pending state, and the other reasons are the same.
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44517656/article/details/108762067