diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-11-25 10:52:15 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-11-25 10:52:15 +0200 |
commit | fc1044daf51f32b9d85f8497e4e0bd5a3c1e7fe9 (patch) | |
tree | 52e11c88f17c47c0d086761e50b266f5c5ccd061 /src/heap.c | |
parent | cec85dedb7fd66cf2c23cafadd7c53eb7afed78f (diff) | |
download | libtf-fc1044daf51f32b9d85f8497e4e0bd5a3c1e7fe9.tar.bz2 libtf-fc1044daf51f32b9d85f8497e4e0bd5a3c1e7fe9.tar.xz |
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.
Diffstat (limited to 'src/heap.c')
-rw-r--r-- | src/heap.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 <timo.teras@iki.fi> * 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; } |