Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
rhuanjl edited this pageOct 9, 2018 ·2 revisions

Tells the runtime to do any idle processing it needs to do.

Syntax

STDAPI_(JsErrorCode)    JsIdle(    _Out_opt_ unsigned int *nextIdleTick);

Parameters

  • nextIdleTick: The next system tick when there will be more idle work to do. Can be null. Returns the maximum number of ticks if there no upcoming idle work to do.

Return Value

The codeJsNoError if the operation succeeded, a failure code otherwise.

Remarks

If idle processing has been enabled for the current runtime, callingJsIdle willinform the current runtime that the host is idle and that the runtime can performmemory cleanup tasks.JsIdle can also return the number of system ticks until there will be more idle workfor the runtime to do. CallingJsIdle before this number of ticks has passed will dono work.Requires an active script context.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp