H-uru / Plasma

Cyan Worlds's Plasma game engine
http://h-uru.github.io/Plasma/
GNU General Public License v3.0
202 stars 80 forks source link

Set custom names for all of our threads #1522

Closed dgelessus closed 8 months ago

dgelessus commented 8 months ago

This is helpful when debugging, especially with all of the IO worker threads created by the asio-based socket code.

The APIs for setting thread names are really platform-specific, so this adds a wrapper function that supports Windows, Linux, and Apple platforms. (Only the Windows version has been tested so far.)