Giter Site home page Giter Site logo

对代码的一些疑问 about webserver HOT 5 OPEN

linyacool avatar linyacool commented on May 10, 2024
对代码的一些疑问

from webserver.

Comments (5)

Mrtj2016 avatar Mrtj2016 commented on May 10, 2024

你好!
我在看Epoll的时候,存在一点疑问。

  1. 对于getEventsRequest(int)函数,我觉得这个函数是不是可以写入poll()函数中,免得还得拷贝vector

  2. getEventsRequest(int)函数为什么要执行setEvents(0)

from webserver.

Mrtj2016 avatar Mrtj2016 commented on May 10, 2024

你好!
我在看日志相关的代码时差生了一些疑问,能否请您解答一下。
LoggingTest.cpp中是没有设置Log的filename,运行会直接报错。

from webserver.

linyacool avatar linyacool commented on May 10, 2024

@Mrtj2016 ThreadPool是最开始写的时候用的,后来没用,但是没舍得删哈~

from webserver.

linyacool avatar linyacool commented on May 10, 2024

@Mrtj2016 1.不会copy的,这里会有rvo优化。
2.setEvents(0)是因为拿到事件了就不期望在这段时间内再监控任何事件。

from webserver.

linyacool avatar linyacool commented on May 10, 2024

@Mrtj2016 sudo试试吧,我后面抽时间把代码路径整体过一遍,当时直接用root搞的

from webserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.