Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此查询与hiredis 中提供的示例有关
是否可以通过创建 pthread_create() 从不同的线程调用 event_base_dispatch(base)?
事实上 event_base_dispatch() 是一个循环,它是一个阻塞调用。我的想法是通过调用 redisAsyncCommand() 从父线程发送我所有的 redis 命令,事件库将在另一个线程中运行。