|
Revision 458, 0.6 kB
(checked in by krobillard, 15 months ago)
|
|
Merged Thune thread_safe branch into trunk (r386:457)
|
| Line | |
|---|
| 1 | #ifndef LIST_H |
|---|
| 2 | #define LIST_H |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | #define LIST_HEAD 0 |
|---|
| 8 | #define LIST_TAIL 1 |
|---|
| 9 | |
|---|
| 10 | #define LIST_REMOVED_ERROR "list node has been removed" |
|---|
| 11 | |
|---|
| 12 | #define ur_listNextNode(blk,it) \ |
|---|
| 13 | it = blk->ptr.cells + it->list.next |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | extern UIndex ur_makeList( UThread*, int len, UBlock** blkPtr ); |
|---|
| 17 | extern void ur_listInsertValue( UBlock*, UIndex nodeIndex, UCell* ); |
|---|
| 18 | extern UIndex ur_listRemove( UBlock* blk, UIndex nodeIndex ); |
|---|
| 19 | extern UIndex ur_listClear( UBlock*, UIndex nodeIndex ); |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | #endif |
|---|