Merged
Conversation
Closed
0307de9 to
5b6315c
Compare
5b6315c to
3d1f9f4
Compare
c558b4d to
b297de0
Compare
kshprenger
commented
Mar 31, 2026
| pub(crate) fn drop_clock() { | ||
| CLOCK.take(); | ||
| } | ||
| pub(crate) static CLOCK: AtomicUsize = AtomicUsize::new(0); |
Owner
Author
There was a problem hiding this comment.
Тут кстати. сразу проблема возникает, теперь более одной параллельной симуляции запустить нельзя
Owner
Author
There was a problem hiding this comment.
Можно конечно глобальное состояние привязать в hashmap: simulationId -> State
Owner
Author
There was a problem hiding this comment.
Или передавать контекст в процессы, чтобы вместо now(), они вызывали ctx.now()
Closed
4b9659d to
532d28f
Compare
0f4ea71 to
546158c
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.