AmDaemon (Daemon property): Difference between revisions
Jump to navigation
Jump to search
m (add usage note) |
RPuszewski (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
<li>Since a daemon thread can run web requests, socket server requests, and <var>$CommndL</var> requests, <var>AmDaemon</var> distinguishes a daemon thread that is working for a <var>Daemon</var> object | <li>Since a daemon thread can run web requests, socket server requests, and <var>$CommndL</var> requests, <var>AmDaemon</var> distinguishes a daemon thread that is working for a <var>Daemon</var> object | ||
from, say, a daemon thread running a web request. This distinction is particularly important for certain methods, such as <var>ReturnToMaster</var> or <var>ReturnObject</var>, that can only be issued on a thread associated with a <var>Daemon</var> object. </li> | from, say, a daemon thread running a web request. This distinction is particularly important for certain methods, such as <var>ReturnToMaster</var> or <var>ReturnObject</var>, that can only be issued on a thread associated with a <var>Daemon</var> object. </li> | ||
<li>If a daemon thread was spawned by RunIndependently, AmDaemon will return <code>False</code> since the damon thread has no returnable objects.</li> | |||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template:Daemon:AmDaemon footer}} | {{Template:Daemon:AmDaemon footer}} |
Revision as of 18:55, 23 August 2018
Is the current thread controlled by a Daemon? (Daemon class)
AmDaemon returns a Boolean enumeration to indicate whether AmDaemon was issued on a daemon thread associated with a Daemon object.
Syntax
%boolean = %(Daemon):AmDaemon
Syntax terms
%boolean | An enumeration object of type Boolean to contain the returned value of AmDaemon. AmDaemon returns True if issued on a Daemon-associated thread; otherwise it returns False . |
---|---|
%(Daemon) | The class name in parentheses denotes a shared method. AmDaemon can also be invoked via a Daemon object variable, which may be Null. |
Usage notes
- Since a daemon thread can run web requests, socket server requests, and $CommndL requests, AmDaemon distinguishes a daemon thread that is working for a Daemon object from, say, a daemon thread running a web request. This distinction is particularly important for certain methods, such as ReturnToMaster or ReturnObject, that can only be issued on a thread associated with a Daemon object.
- If a daemon thread was spawned by RunIndependently, AmDaemon will return
False
since the damon thread has no returnable objects.