ddnet/src/engine/server
Robert Müller 4bb549b68e Initialize the Windows COM library on all threads
Use threading model `COINIT_APARTMENTTHREADED` on threads that own a window (the main client thread) and `COINIT_MULTITHREADED` on all other threads.

Add assertions to ensure that the COM library is initialized successfully and only once per thread.

References:

- https://learn.microsoft.com/en-us/windows/win32/learnwin32/initializing-the-com-library
- https://learn.microsoft.com/en-us/windows/win32/com/single-threaded-apartments
- https://learn.microsoft.com/en-us/windows/win32/com/multithreaded-apartments

Yet another attempt at solving #5744.
2022-10-12 17:18:57 +02:00
..
databases Add sv_sql_bindaddr (fixes #5830) 2022-09-13 17:09:53 +02:00
antibot.cpp Organize engine-server includes 2022-06-17 20:32:56 +02:00
antibot.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
authmanager.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
authmanager.h Use std::vector<CKey> instead of array 2022-05-27 16:31:18 +02:00
main.cpp Initialize the Windows COM library on all threads 2022-10-12 17:18:57 +02:00
name_ban.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
name_ban.h Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
register.cpp Stop server if started with old curl and incompatible sv_register 2022-09-22 00:09:02 +02:00
register.h Explicitly delete game server from list on shutdown 2022-06-03 11:27:47 +02:00
server.cpp Merge #5848 #5851 2022-09-18 11:40:11 +00:00
server.h Remove unused DemoRecorder_IsRecording method 2022-08-25 17:57:03 +02:00
server_logger.cpp Extract server main() to its own file 2022-08-15 16:07:27 +03:00
server_logger.h Extract server main() to its own file 2022-08-15 16:07:27 +03:00
sql_string_helpers.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
sql_string_helpers.h Fix some variable name's style 2020-11-08 17:15:48 +01:00
upnp.cpp Huge variable naming format 2022-07-08 18:01:29 +02:00
upnp.h Huge variable naming format 2022-07-08 18:01:29 +02:00