Skip to content

fix: coop should depend on runtime not their sibling cyclic - #2

Merged
josemmoya merged 1 commit into
greenlsi:mainfrom
itscesarvillar:fix/c-coop-include
Jun 9, 2026
Merged

fix: coop should depend on runtime not their sibling cyclic#2
josemmoya merged 1 commit into
greenlsi:mainfrom
itscesarvillar:fix/c-coop-include

Conversation

@itscesarvillar

Copy link
Copy Markdown
Collaborator

No description provided.

@josemmoya
josemmoya requested a review from Copilot June 9, 2026 04:17
@josemmoya
josemmoya merged commit 3a9336e into greenlsi:main Jun 9, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the cooperative scheduler header to depend directly on the core runtime header instead of pulling runtime/time types indirectly through the cyclic scheduler header, avoiding unnecessary sibling coupling (and potential cyclic include chains).

Changes:

  • Replace #include "rxnet/cyclic.h" with #include "rxnet/runtime.h" in rxnet/coop.h to align dependencies with actual usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread c/include/rxnet/coop.h

#include "rxnet/config.h"
#include "rxnet/cyclic.h" /* rx_tick_t, rx_tick_now, rx_tick_add_us, rx_tick_sleep_until */
#include "rxnet/runtime.h" /* rx_tick_t, rx_tick_now, rx_tick_add_us, rx_tick_sleep_until */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants