mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
ae.c event loop: API to resize the fd set size on the run.
This commit is contained in:
@ -48,6 +48,12 @@ static int aeApiCreate(aeEventLoop *eventLoop) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int aeApiResize(aeEventLoop *eventLoop, int setsize) {
|
||||
/* Just ensure we have enough room in the fd_set type. */
|
||||
if (setsize >= FD_SETSIZE) return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void aeApiFree(aeEventLoop *eventLoop) {
|
||||
zfree(eventLoop->apidata);
|
||||
}
|
||||
|
Reference in New Issue
Block a user