ContinueIndependently (Daemon subroutine): Difference between revisions
Jump to navigation
Jump to search
m (→Usage notes) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Daemon:ContinueIndependently subtitle}} | {{Template:Daemon:ContinueIndependently subtitle}} | ||
This | This method tells a daemon that did a <var>[[ReturnToMaster (Daemon subroutine)|ReturnToMaster]]</var> <var>Daemon</var> class call to continue processing at the point of the call. Unlike the <var>[[Continue (Daemon function)|Continue]]</var> method, <var>ContinueIndependently</var> returns immediately, thus allowing the thread that issued <var>ContinueIndependently</var> to run in parallel with the daemon thread. Unlike <var>[[ContinueAsynchronously (Daemon_subroutine)|ContinueAsynchronously]]</var>, this method makes the <var>daemon</var> thread completely independent of the parent thread, so the daeamon is no longer available. | ||
==Syntax== | ==Syntax== | ||
{{Template:Daemon:ContinueIndependently syntax}} | {{Template:Daemon:ContinueIndependently syntax}} | ||
Line 8: | Line 9: | ||
<tr><th>daemon</th> | <tr><th>daemon</th> | ||
<td>A previously defined <var>Daemon</var> object. </td></tr> | <td>A previously defined <var>Daemon</var> object. </td></tr> | ||
<tr><th>inputObj</th> | <tr><th>inputObj</th> | ||
<td>This optional, [[Notation conventions for methods#Named parameters|name allowed]], argument is either: | <td>This optional, [[Notation conventions for methods#Named parameters|name allowed]], argument is either: |
Revision as of 22:41, 21 May 2012
Continue processing independently in daemon (Daemon class)
[Introduced in Sirius Mods 8.1]
This method tells a daemon that did a ReturnToMaster Daemon class call to continue processing at the point of the call. Unlike the Continue method, ContinueIndependently returns immediately, thus allowing the thread that issued ContinueIndependently to run in parallel with the daemon thread. Unlike ContinueAsynchronously, this method makes the daemon thread completely independent of the parent thread, so the daeamon is no longer available.
Syntax
daemon:ContinueIndependently[( [Input= object])] Throws DaemonLost, IncorrectDaemonState
Syntax terms
daemon | A previously defined Daemon object. |
---|---|
inputObj | This optional, name allowed, argument is either:
|
Usage notes
- Issuing ContinueIndependently against a daemon not in a ReturnToMaster wait results in an IncorrectDaemonState exception.
- The Continue and ContinueAsynchronously methods also tell a daemon to continue from a ReturnToMaster wait.