All thread instances from the same thread class have the same name. However, you can assign a different name for each thread instance at runtime using the following steps.
property ThreadName: string read FName write FName;
__property AnsiString ThreadName = {read=FName, write=FName};
ThreadNameInfo.FName := 'MyThreadName';
info.szName = "MyThreadName";
to:
ThreadNameInfo.FName := ThreadName;
info.szName = ThreadName;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|