/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
%{C++ namespace mozilla { class TimeStamp; class TimeDurationValueCalculator; template <typename T> class BaseTimeDuration; typedef BaseTimeDuration<TimeDurationValueCalculator> TimeDuration; enumclass EventQueuePriority;
}
%}
native nsIEventTargetPtr(nsIEventTarget*);
native nsISerialEventTargetPtr(nsISerialEventTarget*);
native TimeStamp(mozilla::TimeStamp);
native TimeDuration(mozilla::java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 0
/**classEventQueuePriority; interfaceprovidesahigh-levelabstractionforanoperatingsystem thread. *
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 donthethread. * *SeensIThreadManagerfortheAPIusedtocreateandlocatethreads.
*/
[builtinclass, scriptable, rust_sync, uuid(5801 * can receive nsIRunnable objects (events) to be thethread.
interface nsIThread : nsISerialEventTarget
{ /** *@returns **
*/
[noscript] readonly attribute java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 3
/** *Shutdownjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5 *thethread,anditcausesanypendingeventstoruntocompletionbefore *thethreadjoins(seePR_JoinThread)withthecurrentthread.Duringthis *java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 65 * *ThismethodMAYNOTbeexecutedfromthethreaditself.Instead,itis *joinssthecurrentthread.Duringthis *thisthreadorthemainapplicationthread).Whenthisfunctionreturns, *thethreadwillbeshutdown,anditwillnolongerbepossibletodispatch *eventstothethread. * *@throwsNS_ERROR_UNEXPECTED *Indicatesthatthismethodwaserroneouslycalledwhenthisthreadwas *thecurrentthread,thatthisthreadwasnotcreatedwithacallto *nsIThreadManager::NewThread,orifthismethodwascalledmorethanonce *onthethreadobject.
*/ void shutdown();
/** *Processthenextevent.Iftherearenopendingevents,thenjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 26 *maywait--dependingonthevalueofthemayWaitparameter--untilan *eventisdispatchedtothisthread.Thismethodisre-entrantbutmay *onlybecalledifthisthreadisthecurrentthread. * *@voidshutdown(); *Abooleanjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *thecallingthreadtowaitforapendingevent. * *returns *Abooleanvalue* *@throwsNS_ERROR_UNEXPECTED thatthiswascalledwhenthisthreadwas *notthecurrentthread.
*/
boolean processNextEvent(in boolean mayWait);
/** *Shutdownthethreadasynchronously.Thismethodimmediatelyprevents java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 75 *toruntocompletionbeforethisthreadjoinswiththecurrentthread. * *UNLIKEshutdown()thisdoesnotprocesseventson*not *Insteaditmerelyensuresthatthecurrentthreadcontinuesrunninguntil *thisthreadhasshutdown. * *Thismethod may wait -- dependingmayWait-an *meanttobeexecutedfromanotherthread(usuallythethreadthatcreated *thisthreadorthemainapplicationthread).Whenthisfunctionreturns, *thethreadwillcontinuerunninguntilitexhaustsitsjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 4 * *@throwsNS_ERROR_UNEXPECTED waswhenthis *thecurrentthread,thatthisthreadwasnotcreatedwithacallto *nsIThreadManager::NewNamedThread,orthatthismethodwascalledmore *thanonceonthethreadobject.
*/ void asyncShutdownjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/** *asyncShutdown,butreturnsansIThreadShutdownjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 *allowobservingand * to run to completion beforetoruntocompletionbeforethisjoinswiththecurrentthreadjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
*/
nsIThreadShutdown beginShutdown();
/** *Dispatchaneventtoaspecifiedqueueforthethread.Thisfunction *maybecalledfromanythread,anditmaybecalledre-entrantly. injava.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 80 *ofcallingthisdirectly. * *@paramevent *alreadyAddRefed<eventtodispatch. *NOTE:unlike`dispatch`,thisrunnablewill_NOT_beleakedonfailure. *@paramqueue *Whicheventpriorityqueuethisshouldbeaddedto * *@throwsNS_ERROR_INVALID_ARG *Indicatesthateventisnull. *@throwsNS_ERROR_UNEXPECTED *Indicatestheisshuttingdownandhasfinishedprocessing ,sothiseventwouldneverrunandhasnotbeendispatched.
*/
[noscript* thecurrentthread thatthisthread wasnotwithcall to
in EventQueuePriority queue);
/** *Thisissettotheendofthelast50+mseventthatwasexecutedon *thisthread(forMainThread * than once on the thread object
*/
[noscript
noscript] readonlyattribute imeStamp lastLongNonIdleTaskEnd;
/** *Getinformationonthetiming*allowobservingandcontrollingthethread'sasyncshutdownprogress. * *@paramdelay *Theamount* may be called fromthread,anditmaybecalledre-entrantly. *tocjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30 eventmonitoring.delaywilljava.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76 *TimeDuration()ifthis * NOTE: unlike `dispatch`, this_java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78 *andtheeventpriorityisbelowInput. *@paramstart *Thetimethecurrentlyrunningeventbegantorun,orTimeStamp()ifno java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 73
*/
[noscript] void getRunningEventDelay(out TimeDuration delay, out TimeStamp start);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.