diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-01-26 15:37:07 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-01-26 15:37:07 +0100 |
commit | 3049f535fff9d351480bceb7ea82667176a7c8a2 (patch) | |
tree | d633ee9f9801ad882e66504a18e07fac7c3d38f8 /tcpsrv.h | |
parent | 0e4373a6329a1f74dda8eceed5fd18ce92fe0d10 (diff) | |
download | rsyslog-3049f535fff9d351480bceb7ea82667176a7c8a2.tar.gz rsyslog-3049f535fff9d351480bceb7ea82667176a7c8a2.tar.bz2 rsyslog-3049f535fff9d351480bceb7ea82667176a7c8a2.zip |
interim commit: refactored epoll processing
this is a perquisite for multi-threading the input handler
Diffstat (limited to 'tcpsrv.h')
-rw-r--r-- | tcpsrv.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -83,6 +83,18 @@ struct tcpsrv_s { }; +/** + * The following structure is a set of descriptors that need to be processed. + * This set will be the result of the epoll or select call and be used + * in the actual request processing stage. It serves as a basis + * to run multiple request by concurrent threads. -- rgerhards, 2011-01-24 + */ +struct tcpsrv_workset_s { + int idx; /**< index into session table (or -1 if listener) */ + void *pUsr; +}; + + /* interfaces */ BEGINinterface(tcpsrv) /* name must also be changed in ENDinterface macro! */ INTERFACEObjDebugPrint(tcpsrv); |