48 lines
4.8 KiB
HTML
Executable File
48 lines
4.8 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>MPI On Cell (Documentation): src/noarch/communication/moc_iprobe.c Source File</title>
|
|
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="../../tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="../../main.html"><span>Main Page</span></a></li>
|
|
<li><a href="../../modules.html"><span>Modules</span></a></li>
|
|
<li><a href="../../annotated.html"><span>Data Structures</span></a></li>
|
|
<li class="current"><a href="../../files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>src/noarch/communication/moc_iprobe.c</h1><a href="../../d2/d97/moc__iprobe_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
|
<a name="l00002"></a>00002 <span class="preprocessor">#include <<a class="code" href="../../d0/d3a/spu_2moc_8h.html">moc.h</a>></span>
|
|
<a name="l00003"></a>00003 <span class="preprocessor">#include <<a class="code" href="../../d9/db3/imoc_8h.html">internal/imoc.h</a>></span>
|
|
<a name="l00004"></a>00004
|
|
<a name="l00005"></a><a class="code" href="../../d0/d64/group__p2p__main.html#g0bc7e537cd866537357a01a12a115a84">00005</a> <span class="keywordtype">int</span> <a class="code" href="../../d0/d64/group__p2p__main.html#g0bc7e537cd866537357a01a12a115a84" title="Tests if a message is available and returns information without actually receiving...">MOC_Iprobe</a>(<span class="keywordtype">int</span> source, <span class="keywordtype">int</span> tag, <a class="code" href="../../d1/dd1/group__comm__mgt.html#g3d2b8a9af65bff5f79d02bda13616767" title="Communicator-Handle.">MOC_Comm</a> comm, <span class="keywordtype">int</span> *flag,
|
|
<a name="l00006"></a>00006 <a class="code" href="../../dd/d7a/structMOC__Status__struct.html" title="Structure holding information about a received message.">MOC_Status</a> *status)
|
|
<a name="l00007"></a>00007 {
|
|
<a name="l00008"></a>00008 <a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html" title="Message-envelope structure.">moc_message_envelope_t</a>* message;
|
|
<a name="l00009"></a>00009 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#1a3fde58aca11d3b901c890916371661" title="message-source">MOC_SOURCE</a> = source;
|
|
<a name="l00010"></a>00010 message = <a class="code" href="../../d8/d88/group__internal__p2p__main.html#g8980da77fa506e9a6d503c8c6eba68e2" title="Get the next valid message-envelope from &quot;source&quot; with specified &quot;tag&quot;...">IMOC_get_entry</a>(source, tag, comm, 0, status);
|
|
<a name="l00011"></a>00011 <span class="keywordflow">if</span> (message)
|
|
<a name="l00012"></a>00012 {
|
|
<a name="l00013"></a>00013 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#ae670a7f91ed4d4326bfda4f17ee14f0" title="message-tag">MOC_TAG</a> = message-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#75502fafc90d03a3b101e5c43c8c1727" title="Message-tag.">tag</a>;
|
|
<a name="l00014"></a>00014 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#3d3497f7a93c00e6800da9500e52daf2" title="error-code">MOC_ERROR</a> = 0;
|
|
<a name="l00015"></a>00015 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#872c34c85569926730eebe10e47af384" title="message-size in byte (internal-variable)">message_size</a> = message-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#33c0974607df68bb2dcb47c8cad3a909" title="Message-size in byte.">size</a>;
|
|
<a name="l00016"></a>00016 status-><a class="code" href="../../dd/d7a/structMOC__Status__struct.html#c84605b34d90e4fde486028fa8b00853" title="message-ID (internal-variable)">mid</a> = message-><a class="code" href="../../df/dd4/structmoc__message__envelope__struct.html#8e4a31624fc7e1d66e972d570ba0207c" title="Message-ID.">id</a>;
|
|
<a name="l00017"></a>00017 *flag = 1;
|
|
<a name="l00018"></a>00018 }
|
|
<a name="l00019"></a>00019 <span class="keywordflow">else</span>
|
|
<a name="l00020"></a>00020 {
|
|
<a name="l00021"></a>00021 *flag = 0;
|
|
<a name="l00022"></a>00022 }
|
|
<a name="l00023"></a>00023 <span class="keywordflow">return</span> 0;
|
|
<a name="l00024"></a>00024 }
|
|
<a name="l00025"></a>00025
|
|
</pre></div></div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Feb 12 13:49:47 2009 for MPI On Cell (Documentation) by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|