huntlabs / hunt

A refined core library for D programming language. The module has concurrency / collections / event / io / logging / text / serialization and more.
Apache License 2.0
95 stars 15 forks source link

fix crash: move stack var bufs and targets into class as static fields #97

Closed mw66 closed 1 year ago

mw66 commented 1 year ago

fix https://github.com/huntlabs/hunt/issues/96

in the old code: the dateThread is access stack variable (via the func tick() call),

https://github.com/huntlabs/hunt/blob/master/source/hunt/util/DateTime.d#L423

which causing crash during druntime shutdown. Now move them into class as static fields.

mw66 commented 1 year ago

@zoujiaqing, @Heromyth can you merge this as soon as you can?

Thanks.