-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsIdle
rhuanjl edited this page Oct 9, 2018
·
2 revisions
Tells the runtime to do any idle processing it needs to do.
STDAPI_(JsErrorCode)
JsIdle(
_Out_opt_ unsigned int *nextIdleTick);
- 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.
The code JsNoError if the operation succeeded, a failure code otherwise.
If idle processing has been enabled for the current runtime, calling JsIdle will inform the current runtime that the host is idle and that the runtime can perform memory cleanup tasks. JsIdle can also return the number of system ticks until there will be more idle work for the runtime to do. Calling JsIdle before this number of ticks has passed will do no work. Requires an active script context.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!