mpmc-queue: expand to 2R2W, 2R1W, 1R2W tests
authorBrian Norris <banorris@uci.edu>
Fri, 2 Nov 2012 23:23:10 +0000 (16:23 -0700)
committerBrian Norris <banorris@uci.edu>
Fri, 2 Nov 2012 23:23:10 +0000 (16:23 -0700)
commit41d403a758afbfbe951e96ebb9461eb4b245363d
treeb2e2e8bb223f5c374c043dff846d4abe7c21e2f6
parenta5efb65980dd2d82ed59a3b66d34a524e373a64d
mpmc-queue: expand to 2R2W, 2R1W, 1R2W tests

I rewrote the test to allow a configurable number of readers and
writers, but then I figured out that our model-checker doesn't support
optarg() and its global optind properly, when using mmap()/mprotect()
snapshotting (it doesn't add the optarg library to be snapshotted...)

So, this test grows to 3 separate source files, at least for now. The
only change is the number of reader and writer threads.
mpmc-queue/.gitignore
mpmc-queue/Makefile
mpmc-queue/mpmc-1r2w.cc [new file with mode: 0644]
mpmc-queue/mpmc-2r1w.cc [new file with mode: 0644]
mpmc-queue/mpmc-queue.cc