cpp test case

break_endless_loop.cpp

检测并自动跳出死循环

Build:
    g++ -g3 -O0 break_endless_loop.cpp -std=c++11 -lpthread -o break_endless_loop
Run:
    ./break_endless_loop