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:Mon, 18 Dec 2006 11:59:46

"Martin James" <nospam@dial.pipex.com> wrote in message
news:4583b24b$1@newsgroups.borland.com...

> A 'priorityAlreadyChanged' flag in the socket context - no problem.

That will not work, and is a problem for the reason I already explained
earlier.  You are binding the flag to a connection *context*, not a
*thread*.  If a *context* changes the priority of the current thread, and
then jumps to another thread, then the flag will be inaccurate.  And if you
have multiple *contexts* running in a single *thread*, then each *context*
will be setting the priority individually, overwriting each other.


Gambit

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive