GithubHelp home page GithubHelp logo

Comments (4)

skywind3000 avatar skywind3000 commented on June 12, 2024

是不是多线程操作 kcp 对象?

from kcp.

LiuAriel avatar LiuAriel commented on June 12, 2024

是不是多线程操作 kcp 对象?

下班回来地路上也是怀疑到这个,请问一下,kcp_send,kcp_recv,kcp_update各自一个线程中,是不是只需要把send、recv用互斥锁即可,update不用?三个共用同一个对象kcp_handle

libuv这样,由于系统flash限制,没办法用了

from kcp.

skywind3000 avatar skywind3000 commented on June 12, 2024

怎么可能,正确的用法是全部在一个线程里操作 kcp 对象。
退一万步,你非得多线程,那么所有接口都要加锁。

from kcp.

LiuAriel avatar LiuAriel commented on June 12, 2024

怎么可能,正确的用法是全部在一个线程里操作 kcp 对象。 退一万步,你非得多线程,那么所有接口都要加锁。

好的,感谢!

from kcp.

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.