Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIAPUBFUN int su_root_yield ( su_root_t self  ) 

Check wait events in callbacks that take lots of time

This function does a 0 timeout poll() and runs wait objects

self pointer to root object

Definition at line 852 of file su_root.c.

References su_port_vtable_t::su_port_yield, su_root_yield(), su_port_vtable_t::su_vtable_size, and su_port_s::sup_vtable.

Referenced by su_root_yield().

  if (self && self->sur_task[0].sut_port) {
    su_port_t *port = self->sur_task[0].sut_port;
    /* Make sure we have su_port_yield extension */
    if (port->sup_vtable->su_vtable_size >= 
      offsetof(su_port_vtable_t, su_port_yield) 
      && port->sup_vtable->su_port_yield)
      return port->sup_vtable->su_port_yield(port);
  errno = EINVAL;
  return -1;

Generated by  Doxygen 1.6.0   Back to index