kqlst = (struct kevent *)xmalloc(sizeof(*kqlst) * kqmax);
zero_timespec.tv_sec = 0;
zero_timespec.tv_nsec = 0;
+
+ commKQueueRegisterWithCacheManager();
}
/*
void
comm_select_init(void)
-{}
+{
+ commPollRegisterWithCacheManager();
+}
void
commPollRegisterWithCacheManager(void)
FD_ZERO(&global_readfds);
FD_ZERO(&global_writefds);
nreadfds = nwritefds = 0;
+
+ commSelectRegisterWithCacheManager();
}
void
FD_ZERO(&global_readfds);
FD_ZERO(&global_writefds);
nreadfds = nwritefds = 0;
+
+ commSelectRegisterWithCacheManager();
}
void
#endif
#ifdef USE_KQUEUE
- commKQueueRegisterWithCacheManager();
+ // commKQueueRegisterWithCacheManager(); //moved to comm_kqueue::comm_select_init()
#endif
#ifdef USE_POLL
-
- commPollRegisterWithCacheManager();
+ // commPollRegisterWithCacheManager(); //moved to comm_poll::comm_select_init
#endif
#if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
-
- commSelectRegisterWithCacheManager();
+ // commSelectRegisterWithCacheManager(); // moved to comm_select::comm_select_init
#endif
clientdbRegisterWithCacheManager();