-
Notifications
You must be signed in to change notification settings - Fork 82
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 query and reply channels #400
Add query and reply channels #400
Conversation
7c4826d
to
c23333d
Compare
examples/unix/c11/z_get_channel.c
Outdated
} | ||
|
||
z_owned_reply_t reply = z_reply_null(); | ||
z_call(channel.recv, &reply); |
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.
I think we should use for(z_call(..), z_check(..), z_call(..))
. The current code only reads one reply but it does not wait for all the replies to arrive.
@jean-roland this PR looks good to me. However the CI seems to fail. I believe the failure is not related to the changes proposed in this PR but I'm not 100% sure. Could you please double check? |
There are issues that are fixed by #399 but there also seems to be issues related to this PR when some features are disabled. |
Thanks @jean-roland, I will take a look |
fc35ea5
to
41f728d
Compare
41f728d
to
a6e1278
Compare
I fixed the compilation with disabled features and the memory leak (thanks @jean-roland for pointing out) |
Add query and reply channels:
Add examples: