Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Optimization for previous fix, please review! Thanks #17

Closed
wants to merge 1 commit into from
Closed

Optimization for previous fix, please review! Thanks #17

wants to merge 1 commit into from

Conversation

knocte
Copy link
Contributor

@knocte knocte commented Jul 29, 2011

Previous change introduced a slowdown because PerformQueuedUnrefs()
doesn't need to lock again when calling Free(), so we separate
the extra lock{} into an private (InternalFree) and a public Free.

Previous change introduced a slowdown because PerformQueuedUnrefs()
doesn't need to lock again when calling Free(), so we separate
the extra lock{} into an private (InternalFree) and a public Free.
mkestner added a commit that referenced this pull request Jul 29, 2011
Candidate patch provided by Andres in pull request #17.

* glib/Object.cs: use ToggleRef.Dispose.
* glib/ToggleRef.cs: implement IDisposable and expose former Free
    functionality as Dispose().  Free is now private non-lock taking
    called by Dispose and the idle queue handler.
@mkestner
Copy link
Contributor

Committed an alternate patch. Thanks.

@mkestner mkestner closed this Jul 29, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants