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

Add PlatformManager::Shutdown to permit the event loop to terminate p… #1531

Conversation

vivien-apple
Copy link
Contributor

…roperly for POSIX platforms

Problem

Right now POSIX platforms (and FreeRTOS) expect the event loop to run forever. In order to allow the platform specific event loop for tool like chip-tool it would be useful to allow it to terminate properly if needed.
For example examples/chip-tool could be used to launch a single command and then terminate. At some points I would like to compile chip-tool against the host POSIX platform in order to emulate a high level controller and use the same codepaths.

Summary of Changes

  • The patch add PlatformManager::Shutdown method
  • So far this method just allow the event loop thread to exit gracefully

I would like to say that this patch fixes #742 but it is only a subpart of it as far as I can tell.

@woody-apple woody-apple merged commit e0f65ef into project-chip:master Jul 9, 2020
rcasallas-silabs pushed a commit to rcasallas-silabs/connectedhomeip that referenced this pull request Jun 20, 2024
…ef so they can't be accesed by multiple threads.

Merge in WMN_TOOLS/matter from fix_variable_context_issue to silabs

Squashed commit of the following:

commit b0514b1b43fe31ca85b09aca99d9662d7dcfa50a
Author: Junior Martinez <[email protected]>
Date:   Thu Feb 1 14:32:07 2024 -0500

    ensure variables or local by using def so they can't be accesed by multiple threads.
rcasallas-silabs pushed a commit to rcasallas-silabs/connectedhomeip that referenced this pull request Jun 20, 2024
…ef so they can't be accesed by multiple threads.

Merge in WMN_TOOLS/matter from fix_variable_context_issue to silabs

Squashed commit of the following:

commit b0514b1b43fe31ca85b09aca99d9662d7dcfa50a
Author: Junior Martinez <[email protected]>
Date:   Thu Feb 1 14:32:07 2024 -0500

    ensure variables or local by using def so they can't be accesed by multiple threads.
chirag-silabs pushed a commit to rosahay-silabs/connectedhomeip that referenced this pull request Jul 15, 2024
…ef so they can't be accesed by multiple threads.

Merge in WMN_TOOLS/matter from fix_variable_context_issue to silabs

Squashed commit of the following:

commit b0514b1b43fe31ca85b09aca99d9662d7dcfa50a
Author: Junior Martinez <[email protected]>
Date:   Thu Feb 1 14:32:07 2024 -0500

    ensure variables or local by using def so they can't be accesed by multiple threads.
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

Successfully merging this pull request may close these issues.

[linux] Linux DeviceLayer should support process termination.
6 participants