This commit is contained in:
Cloud Wu
2022-03-19 07:10:52 +08:00
parent eaba8f969c
commit d1ce950dc1
6 changed files with 37 additions and 21 deletions

View File

@@ -1316,7 +1316,7 @@ inc_sending_ref(struct socket *s, int id) {
continue;
}
// inc sending only matching the same socket id
if (ATOM_CAS(&s->sending, sending, sending + 1))
if (ATOM_CAS_ULONG(&s->sending, sending, sending + 1))
return;
// atom inc failed, retry
} else {