Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 24511, u_dzNamedThread: add names to threads (incl. main thread)

by Thomas Mueller Email: Anonymous


u_dzNamedThread: If this unit is included in a multithreaded program, it will set the name for the main thread to 'Main'. Also declares a TNamedThread type that uses its class name for the thread name and a SetThreadName procedure.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 9.0  to 11.0 156 downloads
Copyright: Open Source or other


Size: 1,401 bytes
Updated on Sun, 18 Mar 2007 10:21:52 GMT
Originally uploaded on Sun, 18 Mar 2007 10:20:39 GMT
SHA1 Hash: 24DF39A03BA1614C9A93819D25E3FF834B96872B
MD5 Hash: AF2E893489A15114957B2FDD55051AC0

    Explore the files in this upload

Description
If this unit is included in a multithreaded program, it will set the
name for the main thread to 'Main' (also does this for single threaded
programs but it doesn't make that much sense there).

Also it declares a TNamedThread type that uses its class name for the thread name. Make sure to override this if there are multiple instances of this class.

If you do not want to derive from TNamedThread, just call SetThreadName from your thread's execute procedure.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03