Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: clarifying thread safe function references #33871

Closed
wants to merge 2 commits into from

Conversation

legendecas
Copy link
Member

@legendecas legendecas commented Jun 14, 2020

Fixes: #25341

Clarifying that neither napi_ref_threadsafe_function nor napi_unref_threadsafe_function marks the thread-safe functions to be able to be destroyed or prevent them from been destroyed.

initial_thread_count acts as same as calling napi_acquire_threadsafe_function multiple times.

Also, adding small titles in the chapter "Asynchronous Thread-safe Function Calls" to make it easier to read such a large section.

Checklist

@legendecas legendecas added the node-api Issues and PRs related to the Node-API. label Jun 14, 2020
@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Jun 14, 2020
@legendecas legendecas force-pushed the doc-tsfn branch 3 times, most recently from 6bef69d to 06bbe1c Compare June 14, 2020 07:57
doc/api/n-api.md Outdated Show resolved Hide resolved
doc/api/n-api.md Outdated Show resolved Hide resolved
doc/api/n-api.md Outdated Show resolved Hide resolved
doc/api/n-api.md Outdated Show resolved Hide resolved
doc/api/n-api.md Outdated Show resolved Hide resolved
@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. review wanted PRs that need reviews. labels Jun 19, 2020
doc/api/n-api.md Outdated Show resolved Hide resolved
gabrielschulhof pushed a commit that referenced this pull request Jun 23, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
@gabrielschulhof
Copy link
Contributor

Landed in 08a510a.

@legendecas legendecas deleted the doc-tsfn branch June 24, 2020 07:24
codebytere pushed a commit that referenced this pull request Jun 27, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
codebytere pushed a commit that referenced this pull request Jul 10, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
codebytere pushed a commit that referenced this pull request Jul 12, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
@codebytere codebytere mentioned this pull request Jul 13, 2020
codebytere pushed a commit that referenced this pull request Jul 14, 2020
PR-URL: #33871
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. node-api Issues and PRs related to the Node-API. review wanted PRs that need reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NAPI: some napi_*_threadsafe_function naming/documentation issues
6 participants