<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>GNU Radio 3.3.0 C++ API: gc_jd_stack.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.3 --> <div class="contents"> <h1>gc_jd_stack.h File Reference</h1><code>#include <<a class="el" href="gc__types_8h_source.html">gcell/gc_types.h</a>></code><br/> <code>#include <<a class="el" href="gc__job__desc_8h_source.html">gcell/gc_job_desc.h</a>></code><br/> <div class="dynheader"> Include dependency graph for gc_jd_stack.h:</div> <div class="dynsection"> <div class="center"><img src="gc__jd__stack_8h__incl.png" border="0" usemap="#gc__jd__stack_8h_map" alt=""/></div> <map name="gc__jd__stack_8h_map" id="gc__jd__stack_8h"> <area shape="rect" id="node3" href="gc__types_8h.html" title="gcell/gc_types.h" alt="" coords="93,160,211,189"/><area shape="rect" id="node11" href="gc__job__desc_8h.html" title="gcell/gc_job_desc.h" alt="" coords="189,83,325,112"/><area shape="rect" id="node7" href="gc__cdefs_8h.html" title="gcell/gc_cdefs.h" alt="" coords="93,237,211,267"/><area shape="rect" id="node9" href="compiler_8h.html" title="gcell/compiler.h" alt="" coords="235,237,347,267"/><area shape="rect" id="node14" href="gc__job__desc__private_8h.html" title="gcell/gc_job_desc_private.h" alt="" coords="235,160,416,189"/></map> </div> <div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dynsection"> <div class="center"><img src="gc__jd__stack_8h__dep__incl.png" border="0" usemap="#gc__jd__stack_8hdep_map" alt=""/></div> <map name="gc__jd__stack_8hdep_map" id="gc__jd__stack_8hdep"> <area shape="rect" id="node3" href="gc__job__manager__impl_8h.html" title="gc_job_manager_impl.h" alt="" coords="5,83,163,112"/></map> </div> <p><a href="gc__jd__stack_8h_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structgc__jd__stack.html">gc_jd_stack</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Lock free stack for job descriptors (used for free list). <a href="structgc__jd__stack.html#_details">More...</a><br/></td></tr> <tr><td colspan="2"><h2>Typedefs</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef __GC_BEGIN_DECLS <br class="typebreak"/> struct <a class="el" href="structgc__jd__stack.html">gc_jd_stack</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Lock free stack for job descriptors (used for free list). <a href="#a9360c9944831212edca9b84fca596b0b"></a><br/></td></tr> <tr><td colspan="2"><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="gc__jd__stack_8h.html#a941e8e97d39bb6fd5cadcbdc9a5df498">gc_jd_stack_init</a> (<a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> *stack)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the stack to empty. <a href="#a941e8e97d39bb6fd5cadcbdc9a5df498"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="gc__jd__stack_8h.html#a2869ce32fd19fd665081a3f00800724c">gc_jd_stack_push</a> (<a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> *stack, <a class="el" href="structgc__job__desc.html">gc_job_desc_t</a> *item)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add <code>item</code> to the top of <code>stack</code>. <a href="#a2869ce32fd19fd665081a3f00800724c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structgc__job__desc.html">gc_job_desc_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="gc__jd__stack_8h.html#a101083bab04d0d906a3347b901081c7f">gc_jd_stack_pop</a> (<a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> *stack)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">pop and return top item on stack, or 0 if stack is empty <a href="#a101083bab04d0d906a3347b901081c7f"></a><br/></td></tr> </table> <hr/><h2>Typedef Documentation</h2> <a class="anchor" id="a9360c9944831212edca9b84fca596b0b"></a><!-- doxytag: member="gc_jd_stack.h::gc_jd_stack_t" ref="a9360c9944831212edca9b84fca596b0b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef __GC_BEGIN_DECLS struct <a class="el" href="structgc__jd__stack.html">gc_jd_stack</a> <a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a></td> </tr> </table> </div> <div class="memdoc"> <p>Lock free stack for job descriptors (used for free list). </p> <p>This is aligned to a cache line, and fills the cache line, to avoid inadvertently losing reservations created with the load-and-reserve instructions. </p> </div> </div> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a941e8e97d39bb6fd5cadcbdc9a5df498"></a><!-- doxytag: member="gc_jd_stack.h::gc_jd_stack_init" ref="a941e8e97d39bb6fd5cadcbdc9a5df498" args="(gc_jd_stack_t *stack)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gc_jd_stack_init </td> <td>(</td> <td class="paramtype"><a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> * </td> <td class="paramname"> <em>stack</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Initialize the stack to empty. </p> </div> </div> <a class="anchor" id="a101083bab04d0d906a3347b901081c7f"></a><!-- doxytag: member="gc_jd_stack.h::gc_jd_stack_pop" ref="a101083bab04d0d906a3347b901081c7f" args="(gc_jd_stack_t *stack)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structgc__job__desc.html">gc_job_desc_t</a>* gc_jd_stack_pop </td> <td>(</td> <td class="paramtype"><a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> * </td> <td class="paramname"> <em>stack</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>pop and return top item on stack, or 0 if stack is empty </p> </div> </div> <a class="anchor" id="a2869ce32fd19fd665081a3f00800724c"></a><!-- doxytag: member="gc_jd_stack.h::gc_jd_stack_push" ref="a2869ce32fd19fd665081a3f00800724c" args="(gc_jd_stack_t *stack, gc_job_desc_t *item)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gc_jd_stack_push </td> <td>(</td> <td class="paramtype"><a class="el" href="gc__jd__stack_8h.html#a9360c9944831212edca9b84fca596b0b">gc_jd_stack_t</a> * </td> <td class="paramname"> <em>stack</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structgc__job__desc.html">gc_job_desc_t</a> * </td> <td class="paramname"> <em>item</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Add <code>item</code> to the top of <code>stack</code>. </p> </div> </div> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Dec 29 19:51:12 2010 for GNU Radio 3.3.0 C++ API by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>