-
Notifications
You must be signed in to change notification settings - Fork 11
Close LG instance when corresponding app crashes #59
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
base: celadon/r/mr0/stable
Are you sure you want to change the base?
Close LG instance when corresponding app crashes #59
Conversation
| continue; | ||
| } | ||
| // start msg xchange | ||
| pthread_t thread; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thread is declared in stack, does the new connection will overwrite the existing threads?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| // 0 is reserved for the main channel | ||
| if (channel->id_ > 0) { | ||
| //Mark the end of this thread | ||
| dispatcher->t_clients_.erase(channel->id_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the thread join need to be handled here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| msg = chnl->msg_queue.front(); | ||
| chnl->msg_queue.pop(); | ||
| channel = chnl; | ||
| bMsg = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the break need to be added here to avoid possible msg lost if multiple messages arriving?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
d98baa9 to
d1c4061
Compare
shuangwan01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Tracked-On: OAM-100054 Signed-off-by: ahs <amrita.h.s@intel.com>
d1c4061 to
b0e036d
Compare
Tracked-On: OAM-100054
Signed-off-by: ahs amrita.h.s@intel.com