summaryrefslogtreecommitdiff
path: root/src/atomic_ops_stack.h
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-02-14 07:24:34 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-02-14 10:25:28 +0300
commit152e04c935ed5eb3800768636796d8e7151e072d (patch)
tree7fbde8d3621b338da1ca1c7a577059fc2a02e9c8 /src/atomic_ops_stack.h
parentc7a0b9f5896b6ff67a1f09f273cc0e0c6a0d09e9 (diff)
downloadlibatomic_ops-152e04c935ed5eb3800768636796d8e7151e072d.tar.gz
Better document test_stack internals
Also, add assertion that no overrun of t[] in run_one_test(). * tests/test_stack.c: Include assert.h. * tests/test_stack.c (add_elements, check_list, run_one_test, main): Add comments. * tests/test_stack.c (run_one_test): Add assertion that index is not greater than MAX_NTHREADS; refine error message when list is empty.
Diffstat (limited to 'src/atomic_ops_stack.h')
0 files changed, 0 insertions, 0 deletions