Changeset b5f532b42a354e0463bc43a0aac27f591b9090fb

Show
Ignore:
Timestamp:
03/03/08 04:32:18 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204518738 +0000
git-parent:

[9613f81962bb60dc317bf9765468f2c96d7e7c9a]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204518738 +0000
Message:

provide an API to get the global backq (default backq) so that others can create their own job queues that get completed by the default backq

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer.h

    r171d8ed rb5f532b  
    101101#include "eventer/eventer_jobq.h" 
    102102 
    103 int eventer_impl_propset(const char *key, const char *value); 
    104 int eventer_impl_init(); 
    105 void eventer_add_asynch(eventer_jobq_t *q, eventer_t e); 
    106 void eventer_dispatch_recurrent(struct timeval *now); 
    107 eventer_t eventer_remove_recurrent(eventer_t e); 
    108 void eventer_add_recurrent(eventer_t e); 
     103API_EXPORT(eventer_jobq_t *) eventer_default_backq(); 
     104API_EXPORT(int) eventer_impl_propset(const char *key, const char *value); 
     105API_EXPORT(int) eventer_impl_init(); 
     106API_EXPORT(void) eventer_add_asynch(eventer_jobq_t *q, eventer_t e); 
     107API_EXPORT(void) eventer_dispatch_recurrent(struct timeval *now); 
     108API_EXPORT(eventer_t) eventer_remove_recurrent(eventer_t e); 
     109API_EXPORT(void) eventer_add_recurrent(eventer_t e); 
    109110 
    110111#endif 
  • src/eventer/eventer_impl.c

    r171d8ed rb5f532b  
    4343  } 
    4444  return -1; 
     45} 
     46 
     47eventer_jobq_t *eventer_default_backq() { 
     48  return &__global_backq; 
    4549} 
    4650