Skip to content

Conversation

@amritaintel
Copy link

Tracked-On: OAM-100054
Signed-off-by: ahs amrita.h.s@intel.com

continue;
}
// start msg xchange
pthread_t thread;
Copy link
Contributor

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?

Copy link
Author

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_);
Copy link
Contributor

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?

Copy link
Author

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;
Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@shuangwan01 shuangwan01 left a 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>
@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Stale label for inactive open prs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants