aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/LinkedLists.cpp
diff options
context:
space:
mode:
authorkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2013-05-31 21:47:25 +0000
committerkurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597>2013-05-31 21:47:25 +0000
commit5a87247fdf2768a6408e0b87c210cebda85bc996 (patch)
treeb538e7e42f8a7ba6c53e1b0bc22bfb359b1e0ef9 /CommonLibs/LinkedLists.cpp
parentbec41039bf2ec07c04a6e8b0b586b085ab9cd74c (diff)
syncing commonlibs with Many thanks to Michael Iedema for these patches, makes config a lot better.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@5655 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'CommonLibs/LinkedLists.cpp')
-rw-r--r--CommonLibs/LinkedLists.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/CommonLibs/LinkedLists.cpp b/CommonLibs/LinkedLists.cpp
index ba0f0cc..35a8541 100644
--- a/CommonLibs/LinkedLists.cpp
+++ b/CommonLibs/LinkedLists.cpp
@@ -29,7 +29,17 @@
#include "LinkedLists.h"
-
+void PointerFIFO::push_front(void* val) // by pat
+{
+ // Pat added this routine for completeness, but never used or tested.
+ // The first person to use this routine should remove this assert.
+ ListNode *node = allocate();
+ node->data(val);
+ node->next(mHead);
+ mHead = node;
+ if (!mTail) mTail=node;
+ mSize++;
+}
void PointerFIFO::put(void* val)
{
@@ -58,7 +68,6 @@ void* PointerFIFO::get()
}
-
ListNode *PointerFIFO::allocate()
{
if (mFreeList==NULL) return new ListNode;
@@ -72,6 +81,3 @@ void PointerFIFO::release(ListNode* wNode)
wNode->next(mFreeList);
mFreeList = wNode;
}
-
-
-