Fixed typo.

This commit is contained in:
genxium 2023-04-14 07:28:01 +08:00
parent a241912e7a
commit 28e5c18f00
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
Please refer to [DelayNoMoreUnity](https://github.com/genxium/DelayNoMoreUnity) for a Unity rebuild with .net backend.
# Preface # Preface
This project is a demo for a websocket-based rollback netcode inspired by [GGPO](https://github.com/pond3r/ggpo/blob/master/doc/README.md). This project is a demo for a websocket-based rollback netcode inspired by [GGPO](https://github.com/pond3r/ggpo/blob/master/doc/README.md).

View File

@ -100,7 +100,7 @@ bool RecvRingBuff::pop(RecvWork* out) {
2. If "0 >= oldCnt", we need guard against another "pop" to avoid over-popping. 2. If "0 >= oldCnt", we need guard against another "pop" to avoid over-popping.
*/ */
if (0 >= oldCnt) { if (0 >= oldCnt) {
// "pop" could be accessed by either "GameThread/pollUdpRecvRingBuff" or "UvRecvThread/put", thus we should be proactively guard against concurrent popping while "1 == cnt" // "pop" could be accessed by either "GameThread/pollUdpRecvRingBuff" or "UvRecvThread/put", thus we should be proactively guarding against concurrent popping while "1 == cnt"
++cnt; ++cnt;
return false; return false;
} }