Skip to content

Conversation

twoeths
Copy link
Collaborator

@twoeths twoeths commented Oct 11, 2025

Motivation

  • right now ReferenceCount struct uses a simple _ref_count usize so it does not support multi-thread

Description

  • use std.atomic instead
  • change ReferenceCount to simply RefCount for brevity, see un-OOP the repo #33 (comment)
  • also change acquire() to ref()
  • change release() to unref()

Closes #61

@twoeths twoeths marked this pull request as ready for review October 11, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support atomic ref count

1 participant