1
/***************************************************************************
3
copyright : (C) 2006 by mean
4
email : fixounet@free.fr
5
***************************************************************************/
7
/***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
20
#include <ADM_assert.h>
21
#include "ADM_library/default.h"
22
#include "ADM_toolkit/ADM_threads.h"
23
#include "ADM_queue.h"
25
ADM_queue::ADM_queue()
30
ADM_queue::~ADM_queue()
34
printf(">>>>>>>>Warning queue is not empty\n<<<<<<<");
37
uint8_t ADM_queue::isEmpty(void)
43
uint8_t ADM_queue::push(void *data)
45
queueElem *elem=new queueElem;
59
uint8_t ADM_queue::pushBack(void *data)
61
queueElem *elem=new queueElem;
69
uint8_t ADM_queue::pop(void **data)
73
if(isEmpty()) return 0;