Skip to content

Commit

Permalink
Merge branch 'master' into send-ibv-unicast
Browse files Browse the repository at this point in the history
  • Loading branch information
bmerry committed Feb 12, 2020
2 parents 8f084a4 + 7537876 commit 9efc7b0
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ matrix:
dist: xenial
env: TEST_PYTHON=yes PYTHON=python3 CC="clang" CXX="clang++"
- os: osx
osx_image: xcode8.3
osx_image: xcode9.4
env: TEST_CXX=yes CXX="clang++"
- os: osx
osx_image: xcode8.3
osx_image: xcode9.4
env: TEST_PYTHON=yes PYTHON=python3 CC="clang" CXX="clang++"

addons:
Expand Down
5 changes: 2 additions & 3 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ echo "CXX = ${CXX:=g++}"

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$PYTHON" == "python3" ]]; then
brew update
brew upgrade python
pyvenv venv
python3 --version
python3 -m venv venv
fi
elif [[ "$PYTHON" == pypy* ]]; then
curl -fSL https://bitbucket.org/pypy/pypy/downloads/${PYTHON}-v${PYPY_VERSION}-linux64.tar.bz2 | tar -jx
Expand Down
5 changes: 4 additions & 1 deletion .travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ if [ "$TEST_CXX" = "yes" ]; then
--disable-optimized \
CXXFLAGS=-Werror
make -j4
make -j4 check
if ! make -j4 check; then
cat src/test-suite.log
exit 1
fi
popd
fi

Expand Down
4 changes: 3 additions & 1 deletion doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ Changelog
- Fix occasional crash when using thread pool with more than one thread
together with ibverbs.
- Fix bug in mcdump causing it to hang if the arguments couldn't be parsed
and capturing to file.
(only happened when capturing to file).
- Fix :program:`spead2_recv` reporting statistics that may miss out the last
batch of packets.

.. rubric:: 2.0.2

Expand Down
9 changes: 8 additions & 1 deletion src/spead2_recv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,15 @@ int main(int argc, const char **argv)
}
signals.cancel();
spead2::recv::stream_stats stats;
for (const auto &ptr : streams)
for (auto &ptr : streams)
{
/* Even though we've seen the stop condition, if we don't explicitly
* stop the stream then a race condition means we might not see the
* last batch of statistics updates.
*/
ptr->stop();
stats += ptr->get_stats();
}

std::cout << "Received " << n_complete << " heaps\n";
#define REPORT_STAT(field) (std::cout << #field ": " << stats.field << '\n')
Expand Down
7 changes: 4 additions & 3 deletions src/unittest_semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ typedef boost::mpl::list<
spead2::semaphore_eventfd,
#endif
#if SPEAD2_USE_POSIX_SEMAPHORES
spead2::semaphore_posix,
spead2::semaphore_posix
#else
spead2::semaphore // a new type only when not using posix semaphores
#endif
spead2::semaphore_fd,
spead2::semaphore> semaphore_types;
> semaphore_types;

typedef boost::mpl::list<
#if SPEAD2_USE_EVENTFD
Expand Down

0 comments on commit 9efc7b0

Please sign in to comment.