epoll_create unsupported api
epoll_create is implemented by calling epoll_create1, it's parameter 'size' is useless.
epoll_create1, The simple version of epoll does not use red-black trees, so when fd is normal value (greater than 0), actually allocated epoll can manage num of EPOLL_DEFAULT_SIZE
- 参数
-
- 返回
- epoll fd
在文件 fs_epoll.c 第 179 行定义.
185 if (epHead == NULL) {
191 epHead->
size = EPOLL_DEFAULT_SIZE;
194 if (epHead->
evs == NULL) {
static int EpollAllocSysFd(int maxfdp, struct epoll_head *head)
STATIC pthread_mutex_t g_epollMutex
void * malloc(size_t size)
动态分配内存块大小
void free(void *ptr)
释放ptr所指向的内存空间
int pthread_mutex_lock(pthread_mutex_t *mutex)
互斥锁加锁操作
int pthread_mutex_unlock(pthread_mutex_t *mutex)
解锁互斥锁
ARG_NUM_3 ARG_NUM_1 ARG_NUM_2 ARG_NUM_2 ARG_NUM_3 ARG_NUM_1 ARG_NUM_4 ARG_NUM_2 ARG_NUM_2 ARG_NUM_5 ARG_NUM_2 void