schedule() other processes while waiting in ec_master_sync_io().
authorFlorian Pose <fp@igh-essen.com>
Mon, 12 Feb 2007 11:12:00 +0000
changeset 549 67be4381c820
parent 548 f5d41a52a8aa
child 550 f94a9f1bcaea
schedule() other processes while waiting in ec_master_sync_io().
TODO
master/master.c
--- a/TODO	Mon Feb 12 10:39:52 2007 +0000
+++ b/TODO	Mon Feb 12 11:12:00 2007 +0000
@@ -8,7 +8,6 @@
 
 * 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.
 
--- a/master/master.c	Mon Feb 12 10:39:52 2007 +0000
+++ b/master/master.c	Mon Feb 12 11:12:00 2007 +0000
@@ -1458,6 +1458,7 @@
     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