implement copy chunk

This commit is contained in:
Ryo Nakamura
2022-10-22 18:23:42 +09:00
parent ab0bf7e5dc
commit b2ae183c81
5 changed files with 380 additions and 34 deletions

View File

@@ -12,9 +12,9 @@ static inline void refcnt_inc(refcnt *cnt)
__sync_add_and_fetch(cnt, 1);
}
static inline void refcnt_dec(refcnt *cnt)
static inline refcnt refcnt_dec(refcnt *cnt)
{
__sync_sub_and_fetch(cnt, 1);
return __sync_sub_and_fetch(cnt, 1);
}