Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

notify handlers asynchronously so that longer running operations do not block us #4599

Merged
merged 2 commits into from
Nov 21, 2017

Conversation

kaikreuzer
Copy link
Contributor

Currently, the ThingLinkManager might process events very slowly, which can be a cause for the issue described in #4591. Notifying the handlers asynchronously should solve this.

Signed-off-by: Kai Kreuzer [email protected]

@maggu2810
Copy link
Contributor

Doesn't this increase the potential change about a "not initialized anymore" call to the channel (un)linked method?

@kaikreuzer
Copy link
Contributor Author

True. I've now moved the check into the runnable, so that it is checked immediately before the call - does that look better?

@maggu2810
Copy link
Contributor

Yes, the change is so the same as before, but the other issue is resolved.
Looks good to me. Let's wait for Travis and then merge the PR.

@maggu2810 maggu2810 merged commit 5ecc04a into eclipse-archived:master Nov 21, 2017
@sjsf
Copy link
Contributor

sjsf commented Nov 21, 2017

Yes, the change is so the same as before [...]

At least there is a pretty high probability that is is 😉

Let's see how the chances are in reality of running into a race condition at this place - the consequences would not be of real harm though, so I'm fine with it!

@kaikreuzer kaikreuzer deleted the tlm branch November 28, 2017 17:02
@kaikreuzer kaikreuzer added this to the 0.9.0 milestone Nov 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants