-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsAddRef
Limin Zhu edited this page Oct 9, 2015
·
1 revision
Adds a reference to a garbage collected object.
STDAPI_(JsErrorCode)
JsAddRef(
_In_ JsRef ref,
_Out_opt_ unsigned int *count);
- ref: The object to add a reference to.
- count: The object's new reference count (can pass in null).
The code JsNoError if the operation succeeded, a failure code otherwise.
This only needs to be called on JsRef handles that are not going to be stored somewhere on the stack. Calling JsAddRef ensures that the object the JsRef refers to will not be freed until JsRelease is called.
- 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!