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

Random improvements #61

Merged
merged 7 commits into from Dec 30, 2014
Merged

Conversation

Jalle19
Copy link
Collaborator

@Jalle19 Jalle19 commented Dec 30, 2014

@adamsutton @ksooo could you take a look? This is some stuff that I did some time ago but forgot to publish. None of it is really necessary but IMO it makes things a bit leaner.

@adamsutton
Copy link
Owner

Apart from the few points, looks fine. Main thing to fix is the circbuf change

This struct is created when the addon is started and stored as a const
reference in CTvheadend. This way we avoid having to lock the global
mutex whenever a setting value has to be read. It was generally not
needed before either since the only time a setting could change was
right before the addon was restarted or when the timeout parameters
where changed (which didn't require a restart). This removes that
uncertainty.
This has worked since every class that uses Tvheadend.h has also
had "using namespace ADDON" in it
@Jalle19
Copy link
Collaborator Author

Jalle19 commented Dec 30, 2014

@adamsutton the tvh pointer needs to be in the header since it's used in a few places in CHTSPConnection. Other than that I dropped the circular buffer change.

@adamsutton
Copy link
Owner

Fair enough. Merge it

Jalle19 added a commit that referenced this pull request Dec 30, 2014
@Jalle19 Jalle19 merged commit 1fde97a into adamsutton:master Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants