Lines Matching refs:testBuffer
364 } TestBuffer;
368 TestBuffer* buffer = (TestBuffer*)arg;
403 TestBuffer* buffer = (TestBuffer*)arg;
440 TestBuffer testBuffer;
445 deMemset(&testBuffer, 0, sizeof(testBuffer));
447 testBuffer.empty = deSemaphore_create(DE_LENGTH_OF_ARRAY(testBuffer.buffer), DE_NULL);
448 testBuffer.fill = deSemaphore_create(0, DE_NULL);
450 DE_TEST_ASSERT(testBuffer.empty && testBuffer.fill);
452 consumer = deThread_create(consumerThread, &testBuffer, DE_NULL);
453 producer = deThread_create(producerThread, &testBuffer, DE_NULL);
464 DE_TEST_ASSERT(testBuffer.producerSum == testBuffer.consumerSum);