Mercurial > hg > Game > CbCTaskManager
view src/List.h @ 14:5f65da34f4f3
add runnable pthread mode.
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 09 Jan 2010 18:13:49 +0900 |
parents | 07fab8c367b2 |
children | d31f9a0f9024 |
line wrap: on
line source
#ifndef _LIST_H #define _LIST_H typedef struct _List { void *data; struct _List *next; struct _List *prev; } List; typedef struct _ListIter { struct _List *head; struct _List *next; } ListIter; List * _listAddFirst(List*, void *); List * _listRemove(List *, void *); void * _listGetnthData(List *, int); void * _listGetLastData(List *); List * _listMoveLasttoFirst(List *); typedef int (*ApplyFn)(void*,void*); void _listApply(List *, ApplyFn, void *); ListIter * _listIterator(List *); void * _listIterNext(ListIter *); void _listIterEnd(ListIter *); List * _listIterRemoveCurrent(ListIter *); #endif /* !_LIST_H */