Changeset 4f2166b for owl.h


Ignore:
Timestamp:
Oct 19, 2009, 10:14:15 PM (15 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
dbf94e9
Parents:
cc1a6d4
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (10/13/09 03:01:31)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (10/19/09 22:14:15)
Message:
Add a pre-select action list.

Allow us to add actions that should be performed before calling
pselect(). If the action performs any useful work, it should return
non-zero. If any of the actions return a non-zero value, the timeout
for pselect() will be set to 0s, so that we can process all of these
actions again in case they are interacting with one another, while
still keeping an eye on our file descriptors and timers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r40bda84 r4f2166b  
    504504  void *data;
    505505} owl_dispatch;
     506
     507typedef struct _owl_ps_action {
     508  int needs_gc;
     509  int (*callback)(struct _owl_ps_action *, void *);
     510  void (*destroy)(struct _owl_ps_action *);
     511  void *data;
     512} owl_ps_action;
    506513
    507514typedef struct _owl_popexec {
     
    584591  owl_obarray obarray;
    585592  owl_list dispatchlist;
     593  owl_list psa_list;
    586594  GList *timerlist;
    587595  owl_timer *aim_nop_timer;
Note: See TracChangeset for help on using the changeset viewer.