Revision 105439 of nsIThreadPoolListener

  • Revision slug: XPCOM_Interface_Reference/NsIThreadPoolListener
  • Revision title: nsIThreadPoolListener
  • Revision id: 105439
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment 4 words added, 4 words removed

Revision Content

{{ gecko_minversion_header("1.9.1") }}

The nsIThreadPoolListener interface represents objects that listen to notifications generated by the thread pool.

{{ 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 <a class="internal" href="/en/nsIThreadPool" title="En/NsIThreadPool">thread pool</a>.</p>
<p>{{ InterfaceStatus("nsIThreadPoolListener", "xpcom/threads/nsIThreadPool.idl", "unfrozen", "Mozilla 1.9.1", "yes") }}</p>
<p>Inherits from: {{ Interface("nsISupports") }}</p>
<h2 name="Method_overview">Method overview</h2>
<table class="standard-table"> <tbody> <tr> <td><code>void onThreadCreated();<br> </code></td> </tr> <tr> <td><code>void onThreadShuttingDown();<br> </code></td> </tr> </tbody>
</table>
<h2>Methods</h2>
<h3 name="observe.28.29">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 name="Parameters">Parameters</h6>
<p>None.</p>
<h3 name="observe.28.29">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 name="Parameters">Parameters</h6>
<p>None.</p>
<h2>See also</h2>
<ul> <li><a class="internal" href="/en/The_Thread_Manager" title="En/The Thread Manager">The Thread Manager</a></li> <li>{{template.interface("nsIThreadPool")}</li>
</ul>
Revert to this revision