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

[WIP] Stability: Add stability test example and start multithreaded fixes #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Jan 17, 2021

  1. examples: add stability test example with 10000 iterations

     * Test sequence:
    
       - mkdir ./served.build/
       - cd ./served.build/
       - cmake -DCMAKE_BUILD_TYPE=Debug -DSERVED_BUILD_SHARED=ON -DSERVED_BUILD_STATIC=ON -DSERVED_BUILD_EXAMPLES=ON -DSERVED_BUILD_RPM=ON ../served/
       - make -j8
       - ../served/bin/eg_stability
       - gdb -q --batch -ex 'set print thread-events off' -ex 'run' -ex 'bt' ../served/bin/eg_stability
    AdrianDC committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    c1c800b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    504e158 View commit details
    Browse the repository at this point in the history
  3. served: ensure multithreaded servers are properly released

     * A class destructor is added to properly release the members
     * The threads are joined upon destruction to ensure work is done
     * A 1 millisecond delay is added to avoid multithreading races
     * Threads are create with "bind" references rather than lambdas
    AdrianDC committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    0205da9 View commit details
    Browse the repository at this point in the history