Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Locking ephemeris structs might hold up decoder #597

Open
ljbade opened this issue Jan 8, 2016 · 0 comments
Open

Locking ephemeris structs might hold up decoder #597

ljbade opened this issue Jan 8, 2016 · 0 comments

Comments

@ljbade
Copy link
Contributor

ljbade commented Jan 8, 2016

As discussed with @fnoble and @jacobmcnamee currently we lock on the ephemeris thread the struct each time we calculate the position.

In the lock the struct is copied from the decoder thread, as well as using the copy to calculate the sat position.

Instead we should only copy in the lock, and use the local copy in the calculation outside of the lock.

Even better would be to use the old ephemeris until a new one is ready to not block the decoder at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant