ae.c event loop: API to resize the fd set size on the run.

This commit is contained in:
antirez
2013-06-28 16:39:49 +02:00
parent 3130670b97
commit 8e2d082066
6 changed files with 57 additions and 1 deletions

View File

@ -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);
}