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

View1090 net mods #21

Merged
merged 4 commits into from
Jul 10, 2014
Merged

View1090 net mods #21

merged 4 commits into from
Jul 10, 2014

Conversation

hhm0
Copy link

@hhm0 hhm0 commented Jul 2, 2014

I hope the network code is acceptable, not breaking anything :-) (it seems like MSG_PEEK usage is discouraged on (older versions of?) windows).

In particular I hope the one-second reconnect interval is OK.

hhm0 added 4 commits July 2, 2014 07:38
 - keep trying to reconnect to server if disconnected
 - do not block on network data
view1090 was using close to 100% CPU before, with the non-blocking
commits and the reconnection code. sleep a bit between loop iterations
to keep CPU usage low.

CPU usage with this addition was down to <1% in testing.
It *seems* that pthreads are used in dump1090 for I/! sample reading
only. So view1090 need not use pthread_exit.
MalcolmRobb added a commit that referenced this pull request Jul 10, 2014
@MalcolmRobb MalcolmRobb merged commit 60e2c92 into MalcolmRobb:master Jul 10, 2014
@MalcolmRobb
Copy link
Owner

Thanks

tpainter pushed a commit to tpainter/dump1090_win that referenced this pull request Jul 28, 2015
Exadios pushed a commit to Narrogin-Gliding-Club/dump1090 that referenced this pull request Dec 3, 2019
Update skyview with extended mode S data fields
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