Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/threads/nsIThreadPool.idl
//
{static D: &[Interface] = &[
Interface {
name: "nsIThreadPoolListener",
base: Some("nsISupports"),
sync: false,
methods: Ok(&[
/* void onThreadCreated (); */
Method {
name: "OnThreadCreated",
params: &[],
ret: "::nserror::nsresult",
},
/* void onThreadShuttingDown (); */
Method {
name: "OnThreadShuttingDown",
params: &[],
ret: "::nserror::nsresult",
},
]),
},
Interface {
name: "nsIThreadPool",
base: Some("nsIEventTarget"),
sync: true,
methods: Ok(&[
/* [noscript] void setQoSForThreads (in nsIThread_QoSPriority aPriority); */
Method {
name: "SetQoSForThreads",
params: &[Param { name: "aPriority", ty: " u32" }],
ret: "::nserror::nsresult",
},
/* void shutdown (); */
Method {
name: "Shutdown",
params: &[],
ret: "::nserror::nsresult",
},
/* [noscript] void shutdownWithTimeout (in long aTimeoutMs); */
Method {
name: "ShutdownWithTimeout",
params: &[Param { name: "aTimeoutMs", ty: "i32" }],
ret: "::nserror::nsresult",
},
/* attribute unsigned long threadLimit; */
Method {
name: "GetThreadLimit",
params: &[Param { name: "aThreadLimit", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetThreadLimit",
params: &[Param { name: "aThreadLimit", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* attribute unsigned long idleThreadLimit; */
Method {
name: "GetIdleThreadLimit",
params: &[Param { name: "aIdleThreadLimit", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetIdleThreadLimit",
params: &[Param { name: "aIdleThreadLimit", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* attribute unsigned long idleThreadGraceTimeout; */
Method {
name: "GetIdleThreadGraceTimeout",
params: &[Param { name: "aIdleThreadGraceTimeout", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetIdleThreadGraceTimeout",
params: &[Param { name: "aIdleThreadGraceTimeout", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* attribute unsigned long idleThreadMaximumTimeout; */
Method {
name: "GetIdleThreadMaximumTimeout",
params: &[Param { name: "aIdleThreadMaximumTimeout", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetIdleThreadMaximumTimeout",
params: &[Param { name: "aIdleThreadMaximumTimeout", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* attribute unsigned long threadStackSize; */
Method {
name: "GetThreadStackSize",
params: &[Param { name: "aThreadStackSize", ty: "*mut u32" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetThreadStackSize",
params: &[Param { name: "aThreadStackSize", ty: "u32" }],
ret: "::nserror::nsresult",
},
/* attribute nsIThreadPoolListener listener; */
Method {
name: "GetListener",
params: &[Param { name: "aListener", ty: "*mut *const nsIThreadPoolListener" }],
ret: "::nserror::nsresult",
},
Method {
name: "SetListener",
params: &[Param { name: "aListener", ty: "*const nsIThreadPoolListener" }],
ret: "::nserror::nsresult",
},
/* void setName (in ACString aName); */
Method {
name: "SetName",
params: &[Param { name: "aName", ty: "*const ::nsstring::nsACString" }],
ret: "::nserror::nsresult",
},
]),
},
]; D}