File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,13 @@ struct EPOLL {
5151
5252/****************************************************************************/
5353
54+ static __thread int __fiber_share_epoll = 0 ;
55+
56+ void acl_fiber_share_epoll (int yes )
57+ {
58+ __fiber_share_epoll = yes ;
59+ }
60+
5461static void epoll_event_free (EPOLL_EVENT * ee )
5562{
5663 mem_free (ee );
@@ -124,7 +131,6 @@ static __thread ARRAY *__epfds = NULL;
124131
125132static pthread_key_t __once_key ;
126133static pthread_once_t __once_control = PTHREAD_ONCE_INIT ;
127- static __thread int __fiber_share_epoll = 0 ;
128134
129135static void epoll_free (EPOLL * ep );
130136
@@ -354,11 +360,6 @@ int epoll_close(int epfd)
354360 return (* sys_close )(epfd );
355361}
356362
357- void acl_fiber_share_epoll (int yes )
358- {
359- __fiber_share_epoll = yes ;
360- }
361-
362363// Find the EPOLL_EVENT for the current fiber with the specified epfd, and
363364// new one will be created if not found and create is true.
364365static EPOLL_EVENT * epoll_event_find (int epfd , int create )
You can’t perform that action at this time.
0 commit comments