Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

Updated EventManager singleton pattern (now thread safe). #51

Closed Lomadriel closed 9 years ago

Lomadriel commented 9 years ago

See #38.

According to gcc documentation and —§6.7 [stmt.dcl] p4 of C++11. This singleton pattern is thread-safe and use reference instead pointer.

Lomadriel commented 9 years ago

There is just a little warning warning: control reaches end of non-void function [-Wreturn-type] I work to correct it.