add spsc
[cdsspec-compiler.git] / benchmark / ms-queue / my_queue.h
index ff3d42d4697354fa96985e9f457425a1957d3fdc..fa64d6083a7abb9f1e4f67568da97b1d51c0b149 100644 (file)
@@ -80,7 +80,7 @@ void init_queue(queue_t *q, int num_threads);
        @Begin
        @Interface: Enqueue
        @Commit_point_set: Enqueue_Success_Point
-       @ID: get_and_inc(tag);
+       @ID: get_and_inc(tag)
        @Action:
                # __ID__ is an internal macro that refers to the id of the current
                # interface call
@@ -94,7 +94,7 @@ void enqueue(queue_t *q, unsigned int val);
        @Begin
        @Interface: Dequeue
        @Commit_point_set: Dequeue_Success_Point | Dequeue_Empty_Point
-       @ID: get_id(back(__queue))
+       @ID: get_id(front(__queue))
        @Action:
                unsigned int _Old_Val = get_data(front(__queue));
                pop_front(__queue);