 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Sebastien Costa Guest
|
Posted: Fri Nov 21, 2003 4:38 pm Post subject: TIdTCPServer thread priority |
|
|
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
|
Posted: Fri Nov 21, 2003 5:11 pm Post subject: Re: TIdTCPServer thread priority |
|
|
"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 |
|
 |
|
|
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
|
|