XPCOM:nsIThreadManager: Difference between revisions

Jump to navigation Jump to search
m
Line 180: Line 180:
nsThreadUtils.h defines the following helper functions:
nsThreadUtils.h defines the following helper functions:


  NS_METHOD
  NS_METHOD NS_NewThread(const nsACString &name, nsIRunnable *event,
NS_NewThread(const nsACString &name, nsIRunnable *event, nsIThread **result);
                        nsIThread **result);
   
   
  NS_METHOD
  NS_METHOD NS_GetCurrentThread(nsIThread **result);
NS_GetCurrentThread(nsIThread **result);
   
   
  NS_METHOD
  NS_METHOD NS_GetMainThread(nsIThread **result);
NS_GetMainThread(nsIThread **result);
   
   
  NS_METHOD
  NS_METHOD NS_GetThread(const nsACString &name, nsIThread **result);
NS_GetThread(const nsACString &name, nsIThread **result);
   
   
  PRBool
  PRBool NS_IsMainThread();
NS_IsMainThread();


=== nsCOMPtr helpers ===
=== nsCOMPtr helpers ===
272

edits

Navigation menu