XPCOM:nsIThreadManager: Difference between revisions

m
Line 177: Line 177:
== C++ Utilities ==
== C++ Utilities ==


=== Functions ===
nsThreadUtils.h defines the following helper functions:
nsThreadUtils.h defines the following helper functions:


Line 194: Line 195:
  NS_IsMainThread();
  NS_IsMainThread();


=== nsCOMPtr helpers ===
The following nsCOMPtr helpers are defined to simplify things further:
The following nsCOMPtr helpers are defined to simplify things further:


Line 205: Line 207:
  do_GetThread(const nsACString &name)
  do_GetThread(const nsACString &name)


=== nsRunnable ===
The class <code>nsRunnable</code> is also defined to simplify the
The class <code>nsRunnable</code> is also defined to simplify the
implementation of new event types.  For example, to define a new
implementation of new event types.  For example, to define a new
272

edits