Changeset 33b6431b for owl.h


Ignore:
Timestamp:
May 23, 2011, 10:24:49 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
b848e30
Parents:
f97c1a6
git-author:
David Benjamin <davidben@mit.edu> (05/23/11 22:17:05)
git-committer:
David Benjamin <davidben@mit.edu> (05/23/11 22:24:49)
Message:
Clarify owl_io_dispatch ownership

A created owl_io_dispatch is owned by whoever created. For instances
where owl_select needs to remove one of them, we instead invalidate
them. In the case of perl IO dispatches, they are owned by the nebulous
blob that implicitly maps fd to IO dispatch. This is completely insane,
but should avoid leaving people with invalid owl_io_dispatch pointers.

Use this same mechanism to restore owl_select_prune_bad_fds logic.

We really need to kill this and owl_timer in favor of glib's things.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rf97c1a6 r33b6431b  
    548548  int fd;                                     /* FD to watch for dispatch. */
    549549  int mode;
     550  bool valid;
    550551  int needs_gc;
    551552  void (*callback)(const struct _owl_io_dispatch *, void *); /* C function to dispatch to. */
Note: See TracChangeset for help on using the changeset viewer.