<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://fenixdocs.com/skins/common/feed.css?63"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Get id - Revision history</title>
		<link>http://fenixdocs.com/index.php?title=Get_id&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.10.1</generator>
		<lastBuildDate>Fri, 01 May 2026 08:54:56 GMT</lastBuildDate>
		<item>
			<title>Sandman at 11:41, 25 December 2007</title>
			<link>http://fenixdocs.com/index.php?title=Get_id&amp;diff=3982&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table border='0' width='98%' cellpadding='0' cellspacing='4' style=&quot;background-color: white;&quot;&gt;
			&lt;tr&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' width='50%' align='center' style=&quot;background-color: white;&quot;&gt;Revision as of 11:41, 25 December 2007&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 65:&lt;/strong&gt;&lt;/td&gt;
&lt;td colspan=&quot;2&quot; align=&quot;left&quot;&gt;&lt;strong&gt;Line 65:&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Used in example: [[signal]]()&lt;/td&gt;&lt;td&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; font-size: smaller;&quot;&gt;Used in example: [[signal]]()&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;{{Funcbox&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;  | category = Processinteraction&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; font-size: smaller;&quot;&gt;}}&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 25 Dec 2007 11:41:41 GMT</pubDate>			<dc:creator>Sandman</dc:creator>			<comments>http://fenixdocs.com/index.php/Talk:Get_id</comments>		</item>
		<item>
			<title>Sandman: New page: Category:functions Category:processinteraction  ==Definition== '''INT''' get_id ( &lt;'''INT''' processTypeID&gt; )  Returns a ProcessID of a process of the specified [[ProcessTy...</title>
			<link>http://fenixdocs.com/index.php?title=Get_id&amp;diff=3976&amp;oldid=prev</link>
			<description>&lt;p&gt;New page: &lt;a href=&quot;/index.php/Category:Functions&quot; title=&quot;Category:Functions&quot;&gt;Category:functions&lt;/a&gt; &lt;a href=&quot;/index.php/Category:Processinteraction&quot; title=&quot;Category:Processinteraction&quot;&gt;Category:processinteraction&lt;/a&gt;  ==Definition== '''INT''' get_id ( &amp;lt;'''INT''' processTypeID&amp;gt; )  Returns a &lt;a href=&quot;/index.php/ProcessID&quot; title=&quot;ProcessID&quot;&gt;ProcessID&lt;/a&gt; of a &lt;a href=&quot;/index.php/Process&quot; title=&quot;Process&quot;&gt;process&lt;/a&gt; of the specified [[ProcessTy...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:processinteraction]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' get_id ( &amp;lt;'''INT''' processTypeID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns a [[ProcessID]] of a [[process]] of the specified [[ProcessType]]. On the next call of get_id() in the same process and in the same frame, the next process will be returned of the given type. After a [[frame]] statement, get_id() is reset and will return the first process of the given processType. When there are no more processes of a given type, which have not been returned, it will return 0.&lt;br /&gt;
&lt;br /&gt;
get_id(0) returns processes of any type.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' processTypeID || - The [[processTypeID]] of the [[processType]] to get the processes' processIDs of.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The [[processID]] of a process of the given processType.&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - There are no more processes of the given processType, which have not been returned.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;gt;0 || - The [[processID]] of a process of the given processType.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program example;&lt;br /&gt;
Begin&lt;br /&gt;
    signaltype(type Monkey,s_kill);&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Empty process&lt;br /&gt;
 */&lt;br /&gt;
Process Monkey()&lt;br /&gt;
Begin&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Signals every process of type 't' the signal 'signal'.&lt;br /&gt;
 */&lt;br /&gt;
Function int signaltype(int t, int signal)&lt;br /&gt;
Begin&lt;br /&gt;
    while( (x=get_id(t)) ) // while there is an unprocessed process left and store that in 'x'&lt;br /&gt;
        signal(x,signal); // signal the process with processID 'x'.&lt;br /&gt;
    end&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
// Of course, the very observant of you already noticed that signaltype(my_type,my_signal)&lt;br /&gt;
// does the same thing as the function signal(my_type,my_signal), but this is just to&lt;br /&gt;
// illustrate the workings.&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Signals every process the signal 'signal'.&lt;br /&gt;
 */&lt;br /&gt;
Function int signalall(int signal)&lt;br /&gt;
Begin&lt;br /&gt;
    while( (x=get_id(0)) ) // while there is an unprocessed process left and store that in 'x'&lt;br /&gt;
        signal(x,signal); // signal the process with processID 'x'.&lt;br /&gt;
    end&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
// get_id(0) returns a process of any type. This is a possible implementation of a&lt;br /&gt;
// function which signals all existing processes. Note that this can be dangerous to use,&lt;br /&gt;
// as in some cases you might want one or two processes to stay alive.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[signal]]()&lt;/div&gt;</description>
			<pubDate>Tue, 25 Dec 2007 11:38:00 GMT</pubDate>			<dc:creator>Sandman</dc:creator>			<comments>http://fenixdocs.com/index.php/Talk:Get_id</comments>		</item>
	</channel>
</rss>