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

Cannot found nn_init #1008

Closed
xingyun86 opened this issue Nov 30, 2018 · 2 comments
Closed

Cannot found nn_init #1008

xingyun86 opened this issue Nov 30, 2018 · 2 comments

Comments

@xingyun86
Copy link

Why I cannot found nn_init() in latest version?

@gdamore
Copy link
Contributor

gdamore commented Dec 4, 2018

You should not ever need to call nn_init(). In fact, looking at the code, it can probably be removed from the library too, as I don't think anything is actually calling it. It should only be used if you need to recover after calling nn_term(). And really, you should never call nn_term() unless you need to unload a shared library. (A very very rare use case.)

This looks like something I added with an intention of documenting, but it never got documented, and I really would rather you didn't use this (or nn_term) unless you absolutely need to because you need this code to work in the context of an unloaded shared library.

(Let me know if you have other use cases for this that I've not thought of.)

@gdamore
Copy link
Contributor

gdamore commented Jan 30, 2019

Anyway, nn_init() was never documented, and is not part of any promised API. Closing.

@gdamore gdamore closed this as completed Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants