ext/iodine/fio.c
/** Returns true (1) if the engine is attached to the system. */
Returns true (1) if the engine is attached to the system.
Returns true ( 1 ) if the engine is attached to the system .
int fio_pubsub_is_attached(fio_pubsub_engine_s *engine) {
  fio_pubsub_engine_s *addr;
  fio_lock(&fio_postoffice.engines.lock);
  addr = fio_engine_set_find(&fio_postoffice.engines.set, (uintptr_t)engine,
                             engine);
  fio_unlock(&fio_postoffice.engines.lock);
  return addr != NULL;
}
int fio_pubsub_is_attached ( fio_pubsub_engine_s * engine ) { fio_pubsub_engine_s * addr ; fio_lock ( & fio_postoffice . engines . lock ) ; addr = fio_engine_set_find ( & fio_postoffice . engines . set , ( uintptr_t ) engine , engine ) ; fio_unlock ( & fio_postoffice . engines . lock ) ; return addr != NULL ; }
Returns true (1) if the engine is attached to the system.
Returns true ( 1 ) if the engine is attached to the system .