Comments (4)
是不是多线程操作 kcp 对象?
from kcp.
是不是多线程操作 kcp 对象?
下班回来地路上也是怀疑到这个,请问一下,kcp_send,kcp_recv,kcp_update各自一个线程中,是不是只需要把send、recv用互斥锁即可,update不用?三个共用同一个对象kcp_handle
libuv这样,由于系统flash限制,没办法用了
from kcp.
怎么可能,正确的用法是全部在一个线程里操作 kcp 对象。
退一万步,你非得多线程,那么所有接口都要加锁。
from kcp.
怎么可能,正确的用法是全部在一个线程里操作 kcp 对象。 退一万步,你非得多线程,那么所有接口都要加锁。
好的,感谢!
from kcp.
Related Issues (20)
- 关于源码中的慢启动和拥塞避免算法 HOT 3
- 发送端网络受限 ,接收端网络不好,kcp是否会带来改善? HOT 1
- 为每个kcp设置独立的allocator HOT 1
- 使用check机制并不能使cpu使用率下降 HOT 5
- KCP在高延迟环境下怎样使用才能满足大流量,而不是快速响应? HOT 3
- 我用的是C#版的Kcp,每次都得重新new一个对象,想着能重复利用起来,要重置哪些参数就能跟新的一样呢
- 源码中没有定义IKCP_FASTACK_CONSERVE宏导致的重复快重传问题 HOT 3
- ikcp_input函数接口是否应该添加current变量,准确获取当前时间戳? HOT 3
- kcp大带宽传输和发送队列长度问题 HOT 1
- ikcp_check返回的不是下次ikcp_update的时间戳,文档存在问题 HOT 1
- 有kcp 工作流程介绍吗?
- ikcp_recv总是返回-2,ikcp_peeksize函数里的kcp->nrcv_que与seg->frg这两个变量是什么意思 HOT 3
- ikcp_waitsnd HOT 1
- 上行卡顿,下行通畅后续 HOT 4
- 请求: 添加 C# 版本 kcp 到 README
- 这个项目后续还有大的更新么,还是有更新的替代项目了? HOT 1
- update 能不能改到微妙级别 比如 100us HOT 4
- 宏IKCP_FASTACK_CONSERVE会影响到ikcp_input中maxack的更新
- seg的len应该不会超过mss,代码里用uint32来表示,能解答下吗老师
- 热点网络下的kcp表现 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kcp.