From cbd21e1da0d763225e7ea3594d4e6d8e96863790 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 30 May 2023 23:05:30 +0200 Subject: Added hash-based approach --- inc/queue.h | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 inc/queue.h (limited to 'inc/queue.h') diff --git a/inc/queue.h b/inc/queue.h deleted file mode 100644 index 5a704b4..0000000 --- a/inc/queue.h +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2023, Marvin Borner -// SPDX-License-Identifier: MIT - -#ifndef SHARING_QUEUE_H -#define SHARING_QUEUE_H - -#include - -struct queue_node { - void *data; - struct queue_node *next; -}; - -struct queue { - struct queue_node *head; - struct queue_node *tail; -}; - -struct queue *queue_new(void); -void queue_free(struct queue *queue); -void queue_push(struct queue *queue, void *data); -void *queue_pop(struct queue *queue); - -#endif -- cgit v1.2.3