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

Linux init() -> deinit() #343

Open
DominikDessArc opened this issue Feb 15, 2021 · 1 comment
Open

Linux init() -> deinit() #343

DominikDessArc opened this issue Feb 15, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@DominikDessArc
Copy link

DominikDessArc commented Feb 15, 2021

It might be necessary for our application to restart the driver from within the process without restarting the process.
In the current version of the driver, there is no way to join the threads created by
'os_thread_t * os_thread_create'
If, for example, I let unit tests using this driver run with --gtest_repeat=xxx, I will have 2 additional threads (1 for eth, 1 for SNMP) for every iteration. I would like to find a way to deinit() the driver without any dangling threads.
I understand that not having deinit() is not really a problem for microcontrollers since it would never be needed.
Are there any plans in consideration to add a pnet_deinit() corresponding to pnet_init()?
Am I maybe missing something? So far, I have not found an option that enables me to call pnet_init() again without spawning more and more threads.
If there is anything that needs clarification, please let me know.
(Development Environment is ubuntu18.04 x86 desktop). The target platform is ubuntu18.04 arm.

@pyhys pyhys added the enhancement New feature or request label Feb 16, 2021
@pyhys
Copy link
Collaborator

pyhys commented Feb 16, 2021

Hi, thanks for your input.
Yes, I think that we need to implement this in order to support more use cases. It has not yet been included in the planning, though.

Duplicate of #260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants