Skip to content

issues Search Results · repo:LeechanX/Easy-Reactor language:C++

Filter by

11 results
 (61 ms)

11 results

inLeechanX/Easy-Reactor (press backspace or delete to remove)

当有定时器超时时,难道不需要read(timerfd)吗?代码中是直接调用了定时器绑定的callback,这样不会导致定时器可读事件一直发生吗
  • Linkvvu
  • 1
  • Opened 
    on Sep 25, 2023
  • #14

你好我想学习这个项目,但是阅读上有一定困难,请问有更详细的项目讲解吗
  • Arewethere
  • 1
  • Opened 
    on Apr 9, 2020
  • #12

边缘模式的写事件(神坑!)
  • wxd237
  • Opened 
    on Nov 2, 2019
  • #10

tcp_server: 侦听的socket有新连接到达时,从已经运行的连接线程中里获取了一个线程,把该连接事件添加到线程的处理消息队列, 不知道我理解错了吗 //multi-thread reactor model: round-robin a event loop and give message to it if (_thd_pool) ...
  • eric1lubow
  • Opened 
    on Oct 31, 2018
  • #8

多线程启动定时器 线程不安全吧
  • eric1lubow
  • Opened 
    on Oct 19, 2018
  • #7

没有左右子节点?感觉像是个冒泡排序啊, 为啥没有比较左右子节点,但是你取父节点又使用了 完全二叉树的写法 int prt_pos = (curr_pos - 1) / 2; 很奇怪 `void timer_queue::heap_add(timer_event te) { _event_lst.push_back(te); //update position _position[te.timer_id] ...
  • eric1lubow
  • 1
  • Opened 
    on Oct 16, 2018
  • #6

无法make成功,请问这是什么原因,请分析。 这是make的错误提示: $ make g++ -g -O2 -Wall -fPIC -Wno-deprecated -c -o src/tcp_client.o src/tcp_client.cc -Iinclude g++ -g -O2 -Wall -fPIC -Wno-deprecated -c -o src/udp_server.o src/udp_server.cc ...
  • zhaozhengcoder
  • 3
  • Opened 
    on Sep 24, 2018
  • #5

epoll 使用都是用边缘触发吧, 因为水平触发模式,可写的时候,会一直返回EAGAIN吧 当socket可写时,会不停的触发socket可写的事件,LT模式下不需要读写的文件描述符仍会不停地返回就绪,这样就会影响我们监测需要关心的文件描述符的效率。 如果用了水平模式,写完应该把文件描述符移除epoll 监听吧 看你说 ET模式有坑, 链接打不开,不知道是啥原因?
  • eric1lubow
  • Opened 
    on Sep 17, 2018
  • #4

1.do_accept 里 connfd =-1 就应该退出循环了吧。 看代码中EINTR和EMFILE 这2个错误为什么不用退出啊? ` void tcp_server::do_accept() { int connfd; bool conn_full = false; while (true) { connfd = ::accept(_sockfd, (struct sockaddr*) _connaddr, ...
  • eric1lubow
  • 5
  • Opened 
    on Sep 14, 2018
  • #3
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub