Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #1283: Add custom Callable to prevent memory leaks #1776

Merged
merged 1 commit into from
Aug 22, 2015

Conversation

yueh
Copy link
Member

@yueh yueh commented Aug 6, 2015

Added IWorldCallable with World as parameter to replace the generic Callable.

Besides BlockUpdate and MeteoriteSpawn no other class actually needs to access the world passed as argument (or it is already available through being a TileEntity).

Closes #1283

@yueh
Copy link
Member Author

yueh commented Aug 6, 2015

Might also be related to #397

@yueh yueh added this to the rv3 - 1.7.10 milestone Aug 8, 2015

if( queue == null )
{
this.callQueue.put( w, queue = new LinkedList<Callable>() );
this.callQueue.put( w, queue = new LinkedList<IWorldCallable<?>>() );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe split in two lines

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed

@thatsIch thatsIch self-assigned this Aug 20, 2015
@thatsIch
Copy link
Member

reviewed, left 2 comments

@thatsIch
Copy link
Member

Just wondering, did you removed the callable entirely? cause in some cases the call argument is not even used meaningfully.

@yueh
Copy link
Member Author

yueh commented Aug 20, 2015

It is either that as all are currently passed through TickHandler.addCallable() or managing different types of callback queues per world.

yueh added a commit that referenced this pull request Aug 22, 2015
Closes #1283: Add custom Callable to prevent memory leaks
@yueh yueh merged commit 5dfca5e into AppliedEnergistics:master Aug 22, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 28, 2020
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