Overview
Features
Download
Documentation
Community
Add-Ons & Services

Thread names for windows fix?

Discussion of ideas for features and new projects based on POCO.

Thread names for windows fix?

Postby Gamma009 » 05 Aug 2013, 22:13

In the course of using Poco, I have discovered that naming a Poco::Thread does not actually set the thread's name in windows. This means that in the Visual Studio C++ debugger, I see a threads list that looks something like this:

Code: Select all
ID   | Name
-----+--------------------------------
5324 | Poco::ThreadImpl::runnableEntry
6868 | Poco::ThreadImpl::runnableEntry


...when, based on my code, it ought to look like this:

Code: Select all
ID   | Name
-----+--------------------------------
5324 | IPC Thread
6868 | Controller Thread


It's not that big of a deal, as I can dig through the thread's callstack and look at the values of local variables to find out which thread the debugger is talking about, but is there any way we could get a fix for this in the next release of Poco?
Gamma009
 
Posts: 1
Joined: 05 Aug 2013, 21:49

Re: Thread names for windows fix?

Postby guenter » 07 Aug 2013, 09:44

Re-compile Foundation with -DPOCO_WIN32_DEBUGGER_THREAD_NAMES, then this feature will be enabled (in _DEBUG builds only).
guenter
 
Posts: 1110
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest