Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Parallel simulations#71

Merged
kshprenger merged 9 commits intomainfrom
dev/par-dscale
Apr 2, 2026
Merged

Parallel simulations#71
kshprenger merged 9 commits intomainfrom
dev/par-dscale

Conversation

@kshprenger
Copy link
Copy Markdown
Owner

No description provided.

@kshprenger kshprenger linked an issue Mar 17, 2026 that may be closed by this pull request
@kshprenger kshprenger force-pushed the dev/par-dscale branch 6 times, most recently from 0307de9 to 5b6315c Compare March 24, 2026 14:41
pub(crate) fn drop_clock() {
CLOCK.take();
}
pub(crate) static CLOCK: AtomicUsize = AtomicUsize::new(0);
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Тут кстати. сразу проблема возникает, теперь более одной параллельной симуляции запустить нельзя

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Можно конечно глобальное состояние привязать в hashmap: simulationId -> State

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Или передавать контекст в процессы, чтобы вместо now(), они вызывали ctx.now()

@kshprenger kshprenger linked an issue Mar 31, 2026 that may be closed by this pull request
@kshprenger kshprenger merged commit 4c8a06e into main Apr 2, 2026
6 checks passed
@kshprenger kshprenger deleted the dev/par-dscale branch April 5, 2026 11:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UX improvements Parallel execution

1 participant