Coder Social home page Coder Social logo

Pick 函数的规范实现 about cellnet HOT 8 CLOSED

davyxu avatar davyxu commented on August 26, 2024
Pick 函数的规范实现

from cellnet.

Comments (8)

davyxu avatar davyxu commented on August 26, 2024

有性能测试保证稳定和正确性么?

from cellnet.

samuelyao314 avatar samuelyao314 commented on August 26, 2024

参考的是 《Linux多线程服务端编程:使用muduo C++网络库》 第2.2 条件变量

from cellnet.

samuelyao314 avatar samuelyao314 commented on August 26, 2024

如果你需要的话, 我把这本书的电子版发给你。 这边书的作者,说条件变量标准的正确实现只有这一种。

from cellnet.

samuelyao314 avatar samuelyao314 commented on August 26, 2024

跟你的写法,具体的差别,我也不是很清楚

from cellnet.

davyxu avatar davyxu commented on August 26, 2024

https://stackoverflow.com/questions/36857167/how-to-correctly-use-sync-cond

https://www.cnblogs.com/golove/p/5918082.html

from cellnet.

davyxu avatar davyxu commented on August 26, 2024

对于你不清楚的东西,还是写测试用例证明. 任何修改都要对使用者负责,不能让别人当小白鼠

from cellnet.

samuelyao314 avatar samuelyao314 commented on August 26, 2024

你测试的结果是二次lock 性能会比一次lock 好?

from cellnet.

davyxu avatar davyxu commented on August 26, 2024

当时只是解决带缓冲channel在数量过多时会死锁问题,换用现在修改解决问题
多次lock没有测试,别人提过来的代码一直是这样

from cellnet.

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.