hifeng 最近的时间轴更新
hifeng

hifeng

V2EX 第 625225 号会员,加入于 2023-04-21 16:11:51 +08:00
hifeng 最近回复了
类里面建个队列,ConcurrentQueue<byte[]> datas =new ConcurrentQueue<byte[]>(2000)
回调直接读 BytesToRead 到 buff,
添加到队列 datas.Enqueue(buff) 就返回;
另外一个线程去处理 datas;
用了一个 e61919b01ca578a9 ,谢谢.
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1090 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 17:39 · PVG 01:39 · LAX 10:39 · JFK 13:39
♥ Do have faith in what you're doing.