We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb0d540 commit dc430efCopy full SHA for dc430ef
events/equeue/tests/tests.c
@@ -707,17 +707,15 @@ void multithreaded_barrage_test(int N) {
707
equeue_destroy(&q);
708
}
709
710
-struct sCaQ
+struct count_and_queue
711
{
712
int p;
713
equeue_t* q;
714
};
715
716
-typedef struct sCaQ CountAndQueue;
717
-
718
void simple_breaker(void *p) {
719
- CountAndQueue* caq = (CountAndQueue*)p;
720
- equeue_break(caq->q);
+ struct count_and_queue* caq = (struct count_and_queue*)p;
+ equeue_break(caq->q);
721
usleep(10000);
722
caq->p++;
723
@@ -727,7 +725,7 @@ void break_request_cleared_on_timeout(void) {
727
725
int err = equeue_create(&q, 2048);
728
726
test_assert(!err);
729
730
- CountAndQueue pq;
+ struct count_and_queue pq;
731
pq.p = 0;
732
pq.q = &q;
733
0 commit comments