Skip to content

Remove strange enum from ServiceControl - #427

Open
alxndrsn wants to merge 1 commit into
ushahidi:masterfrom
alxndrsn:426_SchedulerInstance
Open

Remove strange enum from ServiceControl#427
alxndrsn wants to merge 1 commit into
ushahidi:masterfrom
alxndrsn:426_SchedulerInstance

Conversation

@alxndrsn

@alxndrsn alxndrsn commented Apr 8, 2016

Copy link
Copy Markdown
Contributor

Fix for #426

return Utility.isConnected(mContext);
}

public enum SchedulerInstance {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is to make the Scheduler a Singleton. More thread-safety this way.

@alxndrsn alxndrsn Apr 22, 2016

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, I obviously missed the singletoning - sorry!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

More thread-safety this way.

Surely something's thread-safe or it's not - the area between the two is scary (and not thread-safe)!

@eyedol

eyedol commented Apr 27, 2016

Copy link
Copy Markdown
Collaborator

@alxndrsn What's the status on this?

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.

2 participants