switch roc to atomic refcounts

This commit is contained in:
Brendan Hansknecht 2025-03-26 20:37:50 -07:00
parent 2dbbdf3e1f
commit c21cf9b8d6
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -203,7 +203,7 @@ const Refcount = enum {
atomic,
};
const RC_TYPE: Refcount = .normal;
const RC_TYPE: Refcount = .atomic;
pub fn increfRcPtrC(ptr_to_refcount: *isize, amount: isize) callconv(.C) void {
if (RC_TYPE == .none) return;