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

Rewriting channel based on new gate component #1729

Closed
wants to merge 1 commit into from
Closed

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Aug 20, 2015

The new gate component is a derivative of and_gate. Adding test.

template <typename OuterLock>
void set(OuterLock & outer_lock, error_code& ec = throws)
{
boost::unique_lock<mutex_type> l(mtx_);
Copy link
Member

Choose a reason for hiding this comment

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

This will potentially lead to held lock during suspension.

@hkaiser
Copy link
Member Author

hkaiser commented Aug 20, 2015

Looks like the design of this is broken, might be better to remove channel alltogether. Even more as we already have the receive_buffer. Thoughts?

@hkaiser
Copy link
Member Author

hkaiser commented Aug 23, 2015

I'm going to close this without merging as I don't know how to fix it properly at this point.

@hkaiser hkaiser closed this Aug 23, 2015
@hkaiser hkaiser deleted the fixing_channel branch August 23, 2015 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants