mpmc-queue.cc init size fixed
authorPeizhao Ou <peizhaoo@uci.edu>
Tue, 25 Mar 2014 16:46:41 +0000 (09:46 -0700)
committerPeizhao Ou <peizhaoo@uci.edu>
Tue, 25 Mar 2014 16:46:41 +0000 (09:46 -0700)
benchmark/mpmc-queue/mpmc-queue.cc

index ca063e9891aa0657e85a6501fa2a5ecaccdc3586..3a19045a65f5f935446f077ca8337a2ea5581e8c 100644 (file)
@@ -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