Changeset 7ca5d3e3f8c76c75f3200773de375d80ac951461

Show
Ignore:
Timestamp:
10/27/09 15:08:19 (4 weeks ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> / 2009-10-27T15:02:36Z-0400
Parents:
a01ed7cdca6315ea934496b953495210530f61f7
Children:
338e5235f0585384ca0db9d54211b880de159b37, ad0deddb4298f15386cb0fca17ff0b2265b9ba7d
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> / 2009-10-27T15:08:19Z-0400
Message:
Remove obsolete dispatch simplifications

This should have been part of the I/O Dispatch API changeset that was
just merged, had I noticed it when ripping out the old API.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • select.c

    r6fc40a7 r7ca5d3e  
    458458 
    459459  if(ret > 0) { 
    460     /* Merge fd_sets and clear AIM FDs. */ 
    461     for(i = 0; i <= max_fd; i++) { 
    462       /* Merge all interesting FDs into one set, since we have a 
    463          single dispatch per FD. */ 
     460    /* AIM HACK: process all AIM events at once. */ 
     461    for(i = 0; !aim_done && i <= max_fd; i++) { 
    464462      if (FD_ISSET(i, &r) || FD_ISSET(i, &w) || FD_ISSET(i, &e)) { 
    465         /* AIM HACK: no separate dispatch, just process here if 
    466            needed, and only once per run through. */ 
    467         if (!aim_done && (FD_ISSET(i, &aim_rfds) || FD_ISSET(i, &aim_wfds))) { 
     463        if (FD_ISSET(i, &aim_rfds) || FD_ISSET(i, &aim_wfds)) { 
    468464          owl_process_aim(); 
    469465          aim_done = 1; 
    470466        } 
    471         else { 
    472           FD_SET(i, &r); 
    473         } 
    474       } 
    475     } 
    476     /* NOTE: the same dispatch function is called for both exceptional 
    477        and read ready FDs. */ 
     467      } 
     468    } 
    478469    owl_select_io_dispatch(&r, &w, &e, max_fd); 
    479470  }