-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_netreg: mbox and arbitrary callback support #5526
gnrc_netreg: mbox and arbitrary callback support #5526
Conversation
The callback idea was mainly to have some experiments done (and maybe future option provided) to run GNRC in a single thread. |
And it can also be used to implement receive callbacks in |
c33ddbd
to
4ff370c
Compare
Rebased to current master. |
5e4f6a5
to
fb93fae
Compare
Fixed some errors. |
6a613e7
to
313ca9d
Compare
Rebased to current dependencies |
880d9b3
to
b6c0c80
Compare
Rebased to current #5524 (as it is the only remaining dependency) and squashed. |
b6c0c80
to
ae85de7
Compare
Rebased to current #5524 and fixed a missing change. |
Quite a lot of changes, and I don't know gnrc well enough. Will reassign. |
Needed for #5772, so added to release. |
ae85de7
to
2fced10
Compare
Rebased to current #5526 |
@@ -59,6 +59,10 @@ ifneq (,$(filter gnrc_conn_udp,$(USEMODULE))) | |||
USEMODULE += gnrc_udp | |||
endif | |||
|
|||
ifneq (,$(filter gnrc_netreg_extra,$(USEMODULE))) |
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.
what was the idea behind the name gnrc_netreg_extra
? I somehow fail to see the relation to what this PR actually does (add other dispatch capabilities with mbox, instead of 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.
Well the _extra
module pulls in the mbox and callback functionality.
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 can fix it up to devide it into two modules, but the complexity is growing in both instances.
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.
Introduced two pseudomodule with a better name.
looks valid to me, the only thing is the name of the |
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.
ACK once Murdock agrees
Oh, and of course once squashed and rebased... |
25d4472
to
8c7ce02
Compare
Rebased and squashed |
8c7ce02
to
0016463
Compare
Fixed issue in |
Murdock is happy => GO |
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions is now required.
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions is now required.
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions is now required.
PR RIOT-OS#5526 introduced mbox support for netreg so using these functions is now required.
Adds dispatch capabilities to
gnrc_netapi
/gnrc_netreg
other than target threads. This is optional behavior. The new target types introduced are:mbox
(see core: mbox: initial commit #4919)TYPE
andpkt
Depends on
#5524(merged),#5525(merged), and#4919(merged)