From fc1044daf51f32b9d85f8497e4e0bd5a3c1e7fe9 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 25 Nov 2009 10:52:15 +0200 Subject: libtf: implement basic file i/o with epoll some scetching of i/o api, and implement basic read and write functionality. integrate polling to scheduler and an epoll based polling mechanism. --- src/heap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/heap.c') diff --git a/src/heap.c b/src/heap.c index 0d1a661..e93abe3 100644 --- a/src/heap.c +++ b/src/heap.c @@ -1,4 +1,4 @@ -/* heap.c - a linked heap implementation +/* heap.c - an array based d-ary heap implementation * * Copyright (C) 2009 Timo Teräs * All rights reserved. @@ -151,7 +151,6 @@ void tf_heap_delete(struct tf_heap_node *node, struct tf_heap_head *head) head->item[index] = head->item[head->num_items+TF_HEAP_ITEM0]; tf_heap_heapify(head, index); } - head->item[head->num_items+TF_HEAP_ITEM0].ptr = NULL; node->index = 0; } -- cgit v1.2.3