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
core: Improve core IPC #1270
Closed
Closed
core: Improve core IPC #1270
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
b2f90b1
ringbuffer: add ringbuffer_remove and ringbuffer_get_free
kaspar030 cd0c049
core: make messaging more flexible by allowing arbitraryly sized msgs
kaspar030 a48066b
sys: add new optional msg_queue module
kaspar030 8b4994a
core: add support for new msg_queues to threading
kaspar030 e04b7a6
core: msg: make _msg_send_int use queue if available
kaspar030 422b10e
sys: chardev_thread: change to new msg api
kaspar030 2a30b1c
make: sys: include msg_queue module directory
kaspar030 ae56345
sys: vtimer: update to new msg api
kaspar030 92a7bc8
examples: ipc_pingpong: update to new msg api
kaspar030 f7d9a33
test_thread_msg: update to new msg api
kaspar030 2b564e3
test: test_thread_msg_block_w_queue: update to new msg api
kaspar030 0ce1c26
tests: test_queue_fairness: update to new msg api
kaspar030 379e475
sys: msg_queue: add define for space required by one queued pulse
kaspar030 bf61121
sys: transceiver: adapt to new msg api
kaspar030 9dddef6
native: update to new msg api
kaspar030 fa7a902
tests: test_vtimer_msg: update to new msg_api
kaspar030 9f68371
tests: test_nativenet: update to new msg api
kaspar030 660c1b4
sys: msg_queue: add convenience functions
kaspar030 1448d64
core: msg: fix active_thread->sched_active_thread rebase
kaspar030 281ba8b
test_vtimer_msg: switch to simplified msg_queue initialization
kaspar030 dcb66e5
msg_queue: use anonymous type instead of typedef'd msg_hdr_t
kaspar030 358fc06
core: make send functions use message nodes
kaspar030 f3347b2
core: msg: expose msg_send_receive and msg_reply
kaspar030 cf9f27b
examples: add example for non-pulse messages
kaspar030 ded909f
examples: add example for raw messages using msg_send_receive/msg_reply
kaspar030 85b75cc
sys: ringbuffer: fix ringbuffer_remove signature typo
kaspar030 ffe9d18
core: msg: switch to use priority queue
kaspar030 22bec15
make: fix rebase error
kaspar030 959bb3a
examples: ipc_pingpong: fix compiler warning
kaspar030 37901b0
examples: ipc_raw_pingpong: adapt to thread_create with args
kaspar030 0c6b2bb
Revert "sys: vtimer: update to new msg api"
kaspar030 081c57d
sys: ringbuffer: add ringbuffer_get_free
kaspar030 82bde2a
examples: ipc_raw_pingpong_sync: adapt to changed thread_create
kaspar030 d2ce261
sys: msg_queue: adapt to changed thread_pid
kaspar030 0c929eb
tests: nativenet: use new msg_queue api
kaspar030 97bf91b
sys: vtimer: adapt to newmsg IPC changes
kaspar030 4a63d45
sys: uart0: adapt to new IPC api
kaspar030 5c6b674
sys: posix_io: adapt to new IPC API
kaspar030 e5f22b9
tests: thread_msg_block_w_queue: msg_queues are now a module
kaspar030 272e61b
adapt to new IPC API
kaspar030 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thought you meant to have a thread have multiple message queues? Or is this feature unrelated to this line? (Sorry, I'm scrolling through your PR while I'm half asleep already.)
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.
Very tired here, too...
The idea is: message nodes contain queues. They're independent of threads, e.g., I want to make it possible to just create multiple msg_node objects and start receiving on / sending to them. But to keep most of the old behaviour (and get an initial communication reference for a thread), every thread is by default created with one (main) message node.
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.
Ah, understood. 👍