projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mpmc-queue.cc init size fixed
[cdsspec-compiler.git]
/
benchmark
/
mpmc-queue
/
mpmc-queue.cc
diff --git
a/benchmark/mpmc-queue/mpmc-queue.cc
b/benchmark/mpmc-queue/mpmc-queue.cc
index ca063e9891aa0657e85a6501fa2a5ecaccdc3586..3a19045a65f5f935446f077ca8337a2ea5581e8c 100644
(file)
--- a/
benchmark/mpmc-queue/mpmc-queue.cc
+++ b/
benchmark/mpmc-queue/mpmc-queue.cc
@@
-108,7
+108,7
@@
void process_params(int argc, char **argv)
int user_main(int argc, char **argv)
{
int user_main(int argc, char **argv)
{
- struct mpmc_boundq_1_alt<int32_t,
2
> queue;
+ struct mpmc_boundq_1_alt<int32_t,
sizeof(int32_t)
> queue;
thrd_t A[MAXWRITERS], B[MAXREADERS], C[MAXRDWR];
/* Note: optarg() / optind is broken in model-checker - workaround is
thrd_t A[MAXWRITERS], B[MAXREADERS], C[MAXRDWR];
/* Note: optarg() / optind is broken in model-checker - workaround is