Skip to content

Move more global state to the worker module#2372

Merged
stevenengler merged 10 commits intoshadow:mainfrom
stevenengler:split-controller
Aug 25, 2022
Merged

Move more global state to the worker module#2372
stevenengler merged 10 commits intoshadow:mainfrom
stevenengler:split-controller

Conversation

@stevenengler
Copy link
Copy Markdown
Contributor

@stevenengler stevenengler commented Aug 22, 2022

These changes allow us to remove the WorkerPools pointers to the Scheduler and the ConfigOptions, which brings us a step closer to being able to write the scheduler and work pool in rust. The manager is becoming a bit overloaded with stuff, but it'll be easier to reorganize things later once it's all in rust.

@stevenengler stevenengler added the Component: Main Composing the core Shadow executable label Aug 22, 2022
@stevenengler stevenengler self-assigned this Aug 22, 2022
@stevenengler stevenengler changed the title Move more global state to the worker Move more global state to the worker module Aug 22, 2022
@github-actions github-actions bot added the Component: Build Build/install tools and dependencies label Aug 22, 2022
@stevenengler stevenengler force-pushed the split-controller branch 2 times, most recently from 44e4937 to 6d9fd8d Compare August 23, 2022 15:12
This uses the simulation time to check if the sim is completed rather than a
flag in the scheduler.
The manager runs later than the worker, and may have things it also wants to
make global.
This makes `ThreadSafeEventQueue` more easily accessible from Rust.
@stevenengler stevenengler force-pushed the split-controller branch 2 times, most recently from c9c0815 to 9e45bc6 Compare August 24, 2022 15:52
@stevenengler stevenengler enabled auto-merge August 25, 2022 17:59
@stevenengler stevenengler merged commit f62e144 into shadow:main Aug 25, 2022
@stevenengler stevenengler deleted the split-controller branch August 25, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants