Skip to content

Mark get_summary in measure.cc as thread safe#632

Merged
sangjinhan merged 1 commit intoNetSys:masterfrom
apanda:summary-ts
Sep 5, 2017
Merged

Mark get_summary in measure.cc as thread safe#632
sangjinhan merged 1 commit intoNetSys:masterfrom
apanda:summary-ts

Conversation

@apanda
Copy link
Copy Markdown
Member

@apanda apanda commented Sep 4, 2017

get_summary reads a value, and should be thread safe to execute (the
values might be off though).

`get_summary` reads a value, and should be thread safe to execute (the
values might be off though).
@apanda apanda requested review from barath and sangjinhan September 4, 2017 21:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 4, 2017

Codecov Report

Merging #632 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #632      +/-   ##
==========================================
- Coverage   69.29%   69.27%   -0.03%     
==========================================
  Files         204      204              
  Lines       13078    13078              
==========================================
- Hits         9063     9060       -3     
- Misses       4015     4018       +3
Impacted Files Coverage Δ
core/modules/measure.cc 67.69% <ø> (ø) ⬆️
pybess/bess.py 42.61% <0%> (-0.49%) ⬇️
core/modules/flowgen.cc 73.7% <0%> (-0.38%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57497af...9ef4f36. Read the comment docs.

@barath
Copy link
Copy Markdown
Contributor

barath commented Sep 5, 2017

Is it possible that the return value will not just be stale but total junk?

@apanda
Copy link
Copy Markdown
Member Author

apanda commented Sep 5, 2017

My reading of the function was no -- things like number of packets, and size of packets will be correct. The histogram might report some inaccuracies, but they will be small.

@barath
Copy link
Copy Markdown
Contributor

barath commented Sep 5, 2017 via email

@sangjinhan sangjinhan merged commit 1d1a2d2 into NetSys:master Sep 5, 2017
@sangjinhan
Copy link
Copy Markdown
Member

tumblr_mbsqv4nt6y1qexe0no1_1280

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.

3 participants