Revision 549235 of nsIThreadPoolListener

  • Revision slug: Mozilla/XPCOM/Reference/Interface/NsIThreadPoolListener
  • Revision title: nsIThreadPoolListener
  • Revision id: 549235
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 5 words added, 2 words removedXPCOM_Interface_Reference/NsIThreadPoolListener Mozilla/XPCOM/Reference/Interface/NsIThreadPoolListener

Revision Content

{{ gecko_minversion_header("1.9.1") }}

The nsIThreadPoolListener interface represents objects that listen to notifications generated by the {{ interface("nsIThreadPool") }}.

{{ InterfaceStatus("nsIThreadPoolListener", "xpcom/threads/nsIThreadPool.idl", "unfrozen", "Mozilla 1.9.1", "yes") }}

Inherits from: {{ Interface("nsISupports") }}

Method overview

void onThreadCreated();
void onThreadShuttingDown();

Methods

onThreadCreated()

Called when a new thread is created by the thread pool. The notification happens on the newly created thread.

void onThreadCreated();
Parameters

None.

onThreadShuttingDown()

Called when a new thread is about to be destroyed by the thread pool. The notification happens on the thread that is about to be destroyed.

void onThreadShuttingDown();
Parameters

None.

See also

Revision Source

<p>{{ gecko_minversion_header("1.9.1") }}</p>
<p>The <code>nsIThreadPoolListener</code> interface represents objects that listen to notifications generated by the {{ interface("nsIThreadPool") }}.</p>
<p>{{ InterfaceStatus("nsIThreadPoolListener", "xpcom/threads/nsIThreadPool.idl", "unfrozen", "Mozilla 1.9.1", "yes") }}</p>
<p>Inherits from: {{ Interface("nsISupports") }}</p>
<h2 id="Method_overview" name="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>void <a href="#onThreadCreated()">onThreadCreated</a>();</code></td> </tr> <tr> <td><code>void <a href="#onThreadShuttingDown()">onThreadShuttingDown</a>();</code></td> </tr> </tbody>
</table>
<h2 id="Methods" name="Methods">Methods</h2>
<h3 id="onThreadCreated()" name="onThreadCreated()">onThreadCreated()</h3>
<p>Called when a new thread is created by the thread pool. The notification happens on the newly created thread.</p>
<pre class="eval">void onThreadCreated();
</pre>
<h6 id="Parameters" name="Parameters">Parameters</h6>
<p>None.</p>
<h3 id="onThreadShuttingDown()" name="onThreadShuttingDown()">onThreadShuttingDown()</h3>
<p>Called when a new thread is about to be destroyed by the thread pool. The notification happens on the thread that is about to be destroyed.</p>
<pre class="eval">void onThreadShuttingDown();
</pre>
<h6 id="Parameters" name="Parameters">Parameters</h6>
<p>None.</p>
<h2 id="See_also" name="See_also">See also</h2>
<ul> <li><a class="internal" href="/en/The_Thread_Manager" title="En/The Thread Manager">The Thread Manager</a></li> <li>{{ interface("nsIThreadPool") }}</li>
</ul>
Revert to this revision