Changeset 7ca5d3e


Ignore:
Timestamp:
Oct 27, 2009, 3:08:19 PM (12 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ad0dedd
Parents:
a01ed7c
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 15:02:36)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (10/27/09 15:08:19)
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>
File:
1 edited

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  }
Note: See TracChangeset for help on using the changeset viewer.