taskrambler  v0.1.8
Web server and task management solution.
queue.c File Reference
#include <stdarg.h>
#include "class.h"
#include "queue.h"
+ Include dependency graph for queue.c:

Go to the source code of this file.

Functions

static int queueCtor (void *_this, va_list *params)
 
static void queueDtor (void *_this)
 
 INIT_IFACE (Class, queueCtor, queueDtor, NULL)
 
 CREATE_CLASS (Queue, NULL, IFACE(Class))
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file queue.c.

Function Documentation

CREATE_CLASS ( Queue  ,
NULL  ,
IFACE(Class)   
)
INIT_IFACE ( Class  ,
queueCtor  ,
queueDtor  ,
NULL   
)
static int queueCtor ( void *  _this,
va_list *  params 
)
static

Definition at line 30 of file queue.c.

31 {
32  return 0;
33 }
static void queueDtor ( void *  _this)
static

Definition at line 37 of file queue.c.

38 {
39  Queue this = _this;
40  Queue node = this->first;
41 
42  while (NULL != node) {
43  Queue next = node->next;
44  delete(node->msg);
45  delete(node);
46  node = next;
47  }
48 }