JuliaDynamics / DiscreteEvents.jl

Discrete event generation and simulation in Julia
MIT License
56 stars 10 forks source link

Include documentation example of process "getting out of sync" with clock #14

Closed non-Jedi closed 4 years ago

non-Jedi commented 4 years ago

There's a repeated admonition to make sure a process doesn't get out of sync with the clock, but the only example given where it happens involves a process doing IO. It's implied that it's possible for a process to do so without calling a function that yields to Julia's event loop, but I'm not sure I see how.

pbayer commented 4 years ago

I see that the 2nd admonition: "In simulations they must take care that they keep synchronized with the clock" under "Delay, wait, take and put" is not clear. I removed it. And I changed the sequence of the first such warning. see commit 9877f42

Does this resolve the issue?

pbayer commented 4 years ago

further clarification with commit ff5119

pbayer commented 4 years ago

I close this now since I think it is solved (got no further objections). Please reopen if this is still an issue.

non-Jedi commented 4 years ago

This is much more clear to me now. Thanks. :)