Changeset f36cd97 for zephyr.c


Ignore:
Timestamp:
Dec 17, 2008, 5:12:37 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1895c29
Parents:
1631825
git-author:
Nelson Elhage <nelhage@mit.edu> (12/17/08 15:44:15)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/17/08 17:12:37)
Message:
Add a void* data to owl_dispatch and pass it around.

Add a void* data field for the use of dispatches, and pass around the
owl_dispatch. This allows one dispatch function to be used for
multiple fd's, and lets us eliminate perl-specific code from the
dispatch loop. In addition, we need to add a destructor to
owl_dispatch so that perl dispatches can have their SV* decref'd on
destroy.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rb9cb41b rf36cd97  
    12031203
    12041204#ifdef HAVE_LIBZEPHYR
    1205 void owl_zephyr_process_events() {
     1205void owl_zephyr_process_events(owl_dispatch *d) {
    12061206  int zpendcount=0;
    12071207  ZNotice_t notice;
     
    12351235
    12361236#else
    1237 void owl_zephyr_process_events() {
    1238  
    1239 }
    1240 #endif
     1237void owl_zephyr_process_events(owl_dispatch *d) {
     1238 
     1239}
     1240#endif
Note: See TracChangeset for help on using the changeset viewer.