如:
typedef struct {
int timelineId;
size_t len;
WalRecord *walrec;
} WalData;
相当于只希望一个应用只有一个单例。对应于设计模式中常说的单例模式。
https://blog.csdn.net/weixin_40283460/article/details/112704812
如:
typedef struct {
int timelineId;
size_t len;
WalRecord *walrec;
} WalData;
相当于只希望一个应用只有一个单例。对应于设计模式中常说的单例模式。
https://blog.csdn.net/weixin_40283460/article/details/112704812