Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: Indy10 - Get thread object

www.cryer.info
Managed Newsgroup Archive

Re: Indy10 - Get thread object

Subject:Re: Indy10 - Get thread object
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Fri, 15 Dec 2006 12:37:33

"Franz Steiner" <nomail@nomail.com> wrote in message
news:4582afaf$1@newsgroups.borland.com...

> How can I access to the TThread object which executes the
> OnExecute event in a TIdTPCServer (Indy 10) ?

You should not be relying on the specific thread at all anymore.  Indy 10
has a more advanced threading model than Indy 9 had.  A connection can jump
from one thread to another.  Which is why the TIdContext class was
introduced to separate user/connection information from the threads.

With that said, it is technically possible to get the TThread object, but
only if you are using one of the TIdSchedulerOfThread... schedulers.  The
TIdContext.Yarn property will be a TIdYarnOfThread object, which has a
Thread property.

> I need to change the priority of the threads which execute the
> commands sent by the clients and I don't know what I've to do
> in order to get this object...


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive