GNU Radio 3.3.0 C++ API
|
00001 /* -*- c++ -*- */ 00002 /* 00003 * Copyright 2007 Free Software Foundation, Inc. 00004 * 00005 * This file is part of GNU Radio 00006 * 00007 * GNU Radio is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 3, or (at your option) 00010 * any later version. 00011 * 00012 * GNU Radio is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License along 00018 * with this program; if not, write to the Free Software Foundation, Inc., 00019 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00020 */ 00021 00022 #ifndef INCLUDED_GCELL_GC_JD_QUEUE_H 00023 #define INCLUDED_GCELL_GC_JD_QUEUE_H 00024 00025 #include <gcell/gc_jd_queue_data.h> 00026 00027 __GC_BEGIN_DECLS 00028 00029 /*! 00030 * \brief Initialize the queue to empty. 00031 */ 00032 void 00033 gc_jd_queue_init(gc_jd_queue_t *q); 00034 00035 00036 /*! 00037 * \brief Add \p item to the tail of \p q. 00038 */ 00039 void 00040 gc_jd_queue_enqueue(gc_jd_queue_t *q, gc_job_desc_t *item); 00041 00042 00043 /*! 00044 * \brief Remove and return item at head of queue, or 0 if queue is empty 00045 */ 00046 gc_job_desc_t * 00047 gc_jd_queue_dequeue(gc_jd_queue_t *q); 00048 00049 __GC_END_DECLS 00050 00051 00052 #endif /* INCLUDED_GCELL_GC_JD_QUEUE_H */