摘要: 加同步锁前后两次判断实例是否已存在(可行,但不推荐) public sealed class Singleton3 { private Singleton3() { } private static object syncObj = new object(); private static Sing 阅读全文
posted @ 2022-11-02 09:11 盛沧海 阅读(39) 评论(0) 推荐(0) 编辑