Skip to content

Update ObjectPool to catch double-release - #2375

Merged
lamont-granquist merged 1 commit into
devfrom
lcg/objectpool-double-release
Oct 18, 2026
Merged

lamont-granquist merged 1 commit into
devfrom
lcg/objectpool-double-release

Conversation

@lamont-granquist

Copy link
Copy Markdown
Collaborator

This implementation does have a weakness where it will not fire if the object has already been borrowed again in between the releases.

This should catch simple double-releases before a borrow, and the hope is that any release-borrow-release condition is just a race which is lost most of the time.

This implementation does have a weakness where it will not fire if
the object has already been borrowed again in between the releases.

This should catch simple double-releases before a borrow, and the
hope is that any release-borrow-release condition is just a race
which is lost most of the time.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-ea61631.zip (built from 2a96088)

@lamont-granquist
lamont-granquist merged commit e599668 into dev Oct 18, 2026
3 checks passed
@lamont-granquist
lamont-granquist deleted the lcg/objectpool-double-release branch October 18, 2026 18:11
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.

1 participant