-
Notifications
You must be signed in to change notification settings - Fork 24
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
Refactoring of event queue #390
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
898fa1c
Use pqueue_tag instead of pqueue for event_q and simplfy scehduling n…
byeonggiljun 52b5bbc
Schedule events with appropriate tag
byeonggiljun 8e6226e
Apply clang-format
byeonggiljun 733f81b
Merge branch 'main' into event-queue-refactoring
byeonggiljun 31a5b1b
Let pqueue_tag be able to compare payloads of elements
byeonggiljun 1d4d05c
Allow the priority comparison function to return 0 if received priori…
byeonggiljun 2ccd7cb
Cleanup codes
byeonggiljun ca62f29
Add a function for finding an element in a priority queue with the pr…
byeonggiljun 64f21c4
Merge branch 'main' into event-queue-refactoring
byeonggiljun d25282e
Merge branch 'main' into event-queue-refactoring
byeonggiljun 7fa757a
Allow the mac default test
byeonggiljun a3584f3
Correctly pile up super dense time
byeonggiljun 0200a84
Revert change to CI and minor fix
byeonggiljun 1bd320f
Update comments to align with the code
byeonggiljun 5ec3325
Apply suggestions from code review
byeonggiljun 3b50275
Add an authorship and remove unused functions
byeonggiljun 4b8d42d
Make `pqueue_tag_init_customize` more flexible and remove some callback
byeonggiljun 5c966b5
Minor fix
byeonggiljun 739b696
Remove the `is_dummy` flag from the `event_q` structure
byeonggiljun d10375d
Move some callback functions for the event queue to environment.c
byeonggiljun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
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.
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.
These function definition seem a little out-of-place here in
environment.c
why not have them in pqueue.c or pqueue_tag.c?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.
The rationale for this is to avoid creating unnecessary dependencies.
Neither pqueue.c nor pqueue_tag.c have any dependence on event_t.
They are more generic. It is in evironment.c that pqueue_tag is adapted to contain items of type event_t. The way it does that is by providing these two functions as arguments to pqueue_tag_init_customize.
These functions are made static, so this design of the event queue is entirely defined in environment.c.
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.
OK I see, thanks for the explanation.