edits
[cdsspec-compiler.git] / benchmark / mpmc-queue / mpmc-queue.h
index 6f1bac68f1bf2bb409b6927d28130732c9e2b590..aa1012976ee8501596d27cc7852f9006ea0e1e0c 100644 (file)
@@ -48,23 +48,23 @@ public:
                        LANG = CPP;
                        CLASS = mpmc_boundq_1_alt;
                @Global_define:
-               @DeclareStruct:
-                       typedef struct elem {
-                               t_element *pos;
-                               bool written;
-                               thread_id_t tid;
-                               thread_id_t fetch_tid;
-                               call_id_t id;
-                       } elem;
-               @DeclareVar:
-                       spec_list *list;
+               //@DeclareStruct:
+                       //typedef struct elem {
+                       //      t_element *pos;
+                       //      bool written;
+                       //      thread_id_t tid;
+                       //      thread_id_t fetch_tid;
+                       //      call_id_t id;
+               //      } elem;
+       //      @DeclareVar:
+       //              spec_list *list;
                        //id_tag_t *tag;
-               @InitVar:
-                       list = new_spec_list();
+       //      @InitVar:
+       //              list = new_spec_list();
                        //tag = new_id_tag();
-               @Cleanup:
-                       if (list)
-                               free_spec_list();
+       //      @Cleanup:
+//                     if (list)
+//                             free_spec_list();
        @Happens_before:
                Publish -> Fetch
                Consume -> Prepare