[Single case] Single case Application construction implementation

Application

  • It seems that static variables have the longest life cycle.
  • The Application class represents the application, the main thread, etc.
  • H:\libuv-dev\Tools\cocos\platform\CCApplication.h

Insert image description here

Singleton: a shared instance for internal use

Insert image description here

Application has multiple implementations:

Insert image description here

win32 singleton

Insert image description here

scheduler is a global shared pointer object

Guess you like

Origin blog.csdn.net/commshare/article/details/133021107