#618 Singletonの実装変更
None
closed
nobody
None
5
2013-11-26
2013-06-23
No
Discussion
Log in to post a comment.
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
CAppNodeManager inst = CAppNodeManager();
CAppNodeManager inst2;
等しても怒られなくなりました。
間違って書かなければいいんですが、自信はないです。
Tsingletonを継承しているクラスのコンストラクタをprivateにしました。コンパイル時にエラーになります。
変更時に気が付きましたが、Tsingletonを継承しているクラスで、デストラクタが記述されているものがありました。
CFigureManager
CColorStrategyPool
[r3302]でcommitしました。
このSingletonはスレッドセーフではないです(変更前後に関係なく)。
スレッドセーフにするのであれば、
Double-checked locking等の対応が必要のようです。
Related
Commit: [r3302]
Last edit: novice123 2013-08-10
下記クラスの継承をTSingleInstance->TSingletonに変更しました。
CEditApp
CEditWnd
[r3348]でcommitしました。
Related
Commit: [r3348]
CShareDataのSingleton風をTSingletonに置き換えました。
conflict対応しました。
[r3373]でcommitしました。
Related
Commit: [r3373]