changes to ms-queue spec
[cdsspec-compiler.git] / benchmark / ms-queue / main.c
index d3bc9c2..4a9f689 100644 (file)
@@ -43,11 +43,21 @@ static void main_task(void *param)
        if (!pid) {
                input[0] = 17;
                enqueue(queue, input[0]);
        if (!pid) {
                input[0] = 17;
                enqueue(queue, input[0]);
+               printf("Enqueue %d.\n", 17);
                succ1 = dequeue(queue, &input[0]);
                succ1 = dequeue(queue, &input[0]);
+               if (succ1)
+                       printf("Dequeue %d.\n", input[0]);
+               else
+                       printf("Dequeue NULL.\n");
        } else {
                input[1] = 37;
                enqueue(queue, input[1]);
        } else {
                input[1] = 37;
                enqueue(queue, input[1]);
+               printf("Enqueue %d.\n", 37);
                succ2 = dequeue(queue, &output[1]);
                succ2 = dequeue(queue, &output[1]);
+               if (succ2)
+                       printf("Dequeue %d.\n", input[1]);
+               else
+                       printf("Dequeue NULL.\n");
        }
 
 }
        }
 
 }