🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4873

Re: Multiple TIdTCPServer

#4873
From: Willie
Date: Fri, 03 Dec 2004 05:10
35 lines
1678 bytes
Hello Remy:

Thanks for your reply.
How can I change thread's priority at runtime?
Like this as below?

   AThread->Priority=tpHigher;

Or like this as below?

   AThread->Stop();
   AThread->Priority=tpHigher;
   AThread->Start();

Which one is correct?

Thank you very much.
Willie.


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> ���g��l��s�D
:41afed54@newsgroups.borland.com...
>
> "Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message
> news:41afdcfb$1@newsgroups.borland.com...
>
> > The TIdPeerThread is a thread.
> > Can I set an IdPeerThread's priority to higher?
>
> TIdPeerThread derives from TThread.  TThread has a Priority property.
>
>
> Gambit
>
>
Technical Details
Message-ID: <41aff28e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41af3d4c$1@newsgroups.borland.com> <41af54d6$1@newsgroups.borland.com> <41afdcfb$1@newsgroups.borland.com> <41afed54@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bcb11f40fbaab32b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
From: "Willie" <Willie.nospam@nospam.pchome.com.tw>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41af3d4c$1@newsgroups.borland.com> <41af54d6$1@newsgroups.borland.com> <41afdcfb$1@newsgroups.borland.com> <41afed54@newsgroups.borland.com>
Subject: Re: Multiple TIdTCPServer
Date: Fri, 3 Dec 2004 13:10:53 +0800
Lines: 37
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 211.20.227.67
Message-ID: <41aff28e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102049934 211.20.227.67 (2 Dec 2004 20:58:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail