How do I guarantee fast shutdown of my win32 app?

前端 未结 11 1839
夕颜
夕颜 2020-12-03 19:13

I\'ve got a C++ Win32 application that has a number of threads that might be busy doing IO (HTTP calls, etc) when the user wants to shutdown the application. Currently, I p

11条回答
  •  旧巷少年郎
    2020-12-03 19:39

    *NULL = 0 is the fastest way. if you don't want to crash, call exit() or its win32 equivalent.

提交回复
热议问题