BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTCPServer thread priority

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Sebastien Costa
Guest





PostPosted: Fri Nov 21, 2003 4:38 pm    Post subject: TIdTCPServer thread priority Reply with quote



I'm using a TIdTCPServer to provide access to a device controlled by a
specific thread.
I seen that priority of Execute() is tpNormal, the same priority of the
thread that control my device.

I implemented a command, handled in the Execute() of the TIdTCPServer that
instruct the thread controlling the device to perform a specific action,
then it waits for the end of this action: my problem is that, in this case,
the thread controlling the device doesn't run until I exit from Execute() of
TIdTCPServer... I think I need something like 'Application.ProcessMessages'
to refresh my thread...

Could anyone help me?

Thanks
Sebastien


Back to top
Martin James
Guest





PostPosted: Fri Nov 21, 2003 5:11 pm    Post subject: Re: TIdTCPServer thread priority Reply with quote




"Sebastien Costa" <xxxx> wrote

Quote:
I'm using a TIdTCPServer to provide access to a device controlled by a
specific thread.
I seen that priority of Execute() is tpNormal, the same priority of the
thread that control my device.

OK, shouldn't matter much.

Quote:
I implemented a command, handled in the Execute() of the TIdTCPServer that
instruct the thread controlling the device to perform a specific action,
then it waits for the end of this action

How do you do this? Set an event? Send a message? How do you wait until
the end of the thread action?

: my problem is that, in this case,
Quote:
the thread controlling the device doesn't run until I exit from Execute()
of
TIdTCPServer... I think I need something like
'Application.ProcessMessages'
to refresh my thread...

A.P? Almost certainly not.

Quote:
Could anyone help me?

Perhaps you could post some code or otherwise provide more details of you
inter-thread comms?

Rgds,
Martin



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.