taskrambler  0.1.8
Web server and task management solution.
queue/get.c File Reference
#include "class.h"
#include "queue.h"
+ Include dependency graph for queue/get.c:

Go to the source code of this file.

Functions

void * queueGet (Queue this)
 

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/get.c.

Function Documentation

void* queueGet ( Queue  this)

Definition at line 27 of file queue/get.c.

Referenced by httpWorkerAddComputedHeader(), httpWorkerProcess(), and httpWriterWrite().

28 {
29  Queue first;
30  void * msg;
31 
32  if (NULL == this->first) {
33  return NULL;
34  }
35 
36  msg = this->first->msg;
37  first = this->first->next;
38 
39  if (this->first == this->last) {
40  this->last = NULL;
41  }
42  delete(this->first);
43 
44  this->next = first;
45  this->first = first;
46  this->nmsg--;
47 
48  return msg;
49 }

+ Here is the caller graph for this function: