Skip to content

Commit b2885de

Browse files
committed
style (commenting)
1 parent ee1bff1 commit b2885de

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/core/connection.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,17 +534,18 @@ void connection_event_loop(void (*connection_handler)(scache_connection* connect
534534
pthread_t tid[2];
535535
struct epoll_event ev;
536536
uint64_t u;
537+
connection_thread_arg thread_arg[2];
537538

538539
//Init Mutex
539540
if (pthread_mutex_init(&cq_lock, NULL) != 0)
540541
{
541542
PFATAL("mutex init failed");
542543
}
543544

544-
//Init Acceptor thread data
545-
connection_thread_arg thread_arg[2];
545+
// Prepare a non blocking eventfd for thread communication
546546
efd = eventfd(0, EFD_NONBLOCK);
547547

548+
//Init Acceptor thread data
548549
thread_arg[0].type = cache_listener;
549550
thread_arg[1].type = mon_listener;
550551
thread_arg[0].eventfd = thread_arg[1].eventfd = efd;

0 commit comments

Comments
 (0)