diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2009-11-07 17:14:28 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2009-11-07 17:14:28 +0100 |
commit | 67f57ab2fb7932b1c43ad669e846b425f6fa1f2b (patch) | |
tree | 95e6fc348b067c8ea03c6c3f35a0284c97ddc76f /lf_fifo_test.c | |
parent | 9c483a02cb2c8d3c67c3cdd1f34630191fa55c1d (diff) | |
download | lock_free-67f57ab2fb7932b1c43ad669e846b425f6fa1f2b.zip lock_free-67f57ab2fb7932b1c43ad669e846b425f6fa1f2b.tar.gz |
push_tail and pop_head goes push and pop
Diffstat (limited to 'lf_fifo_test.c')
-rw-r--r-- | lf_fifo_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lf_fifo_test.c b/lf_fifo_test.c index e212197..9d5a6bc 100644 --- a/lf_fifo_test.c +++ b/lf_fifo_test.c @@ -72,8 +72,8 @@ int main(int argc, char *argv[]) { /* check lf_fifo */ lf_fifo_init( &q); - printf("pop %X\n",(unsigned int)pop_head( &q )); - for(i=0; i<10; i++) lf_fifo_push_tail( &q, &data[i].link ); + printf("pop %X\n",(unsigned int)pop( &q )); + for(i=0; i<10; i++) lf_fifo_push( &q, &data[i].link ); it = (pointer_t*)q.head.split.next; while(it!=NULL) { @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) { } for(i=0; i<5; i++) { - it = pop_head( &q ); + it = pop( &q ); printf("pop %X %d\n",(unsigned int)it,container_of(it,struct node,link)->data); } it = (pointer_t*)q.head.split.next; |