]> git.lizzy.rs Git - dragonstd.git/commitdiff
Rename queue_del to queue_dst
authorElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Apr 2022 12:53:39 +0000 (14:53 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Mon, 4 Apr 2022 12:53:39 +0000 (14:53 +0200)
queue.c
queue.h
test/test_queue.c

diff --git a/queue.c b/queue.c
index ccef905f7ddbcbc9cd91fd06d44239259f31812b..a05dae672362e012ee737d24e3bebde3ee503569 100644 (file)
--- a/queue.c
+++ b/queue.c
@@ -9,7 +9,7 @@ void queue_ini(Queue *queue)
        pthread_mutex_init(&queue->mtx, NULL);
 }
 
-void queue_del(Queue *queue)
+void queue_dst(Queue *queue)
 {
        pthread_cond_destroy(&queue->cnd);
        pthread_mutex_destroy(&queue->mtx);
diff --git a/queue.h b/queue.h
index 8c758e282a7a553940be3604139e6d559568cd68..dcfcd5f43206d378a614e862b28eaa27ffa20ca1 100644 (file)
--- a/queue.h
+++ b/queue.h
@@ -30,9 +30,9 @@ void queue_ini(Queue *queue);
        The queue should be uninitialized or deleted when passed to this function.
 */
 
-void queue_del(Queue *queue);
+void queue_dst(Queue *queue);
 /*
-       Delete the queue.
+       Destroy the queue.
 
        Afterwards, the queue should no longer be used.
 
index 0338d771fd39893650e203d3e6998a8ce9931a43..d332325e0c74d044289202797075009fa7c53253 100644 (file)
@@ -85,7 +85,7 @@ int main()
        for (int i = 0; i < 17; i++)
                pthread_join(threads[i], NULL);
 
-       queue_del(&queue);
+       queue_dst(&queue);
        printf("\n");
 }