提交 5332b123 编写于 作者: T Tak

Minimal lock test for DateTime.Now

上级 07235370
......@@ -508,8 +508,10 @@ namespace System
DateTime dt = new DateTime (now);
if ((now - last_now) > TimeSpan.TicksPerMinute){
to_local_time_span_object = TimeZone.CurrentTimeZone.GetLocalTimeDiff (dt);
last_now = now;
lock (this) {
to_local_time_span_object = TimeZone.CurrentTimeZone.GetLocalTimeDiff (dt);
last_now = now;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册