schedule() other processes while waiting in ec_master_sync_io().

This commit is contained in:
Florian Pose 2007-02-12 11:12:00 +00:00
parent 3b4c23a436
commit 6d74555dad
2 changed files with 1 additions and 1 deletions

1
TODO
View File

@ -8,7 +8,6 @@ $Id$
* Release 1.2:
- Find bug causing slow unloading after topology change.
- Use schedule() in ec_master_sync_io().
- Introduce topology_change_pending.
- Update feature lists.

View File

@ -1458,6 +1458,7 @@ void ec_master_sync_io(ec_master_t *master /**< EtherCAT master */)
ecrt_master_send(master);
while (1) { // active waiting
schedule(); // schedule other processes while waiting.
ecrt_master_receive(master); // receive and dequeue datagrams
// count number of datagrams still waiting for response