ext/iodine/fio.c
/** Returns true if there are deferred functions waiting for execution. */
Returns true if there are deferred functions waiting for execution.
Returns true if there are deferred functions waiting for execution .
int fio_defer_has_queue(void) {
#if FIO_USE_URGENT_QUEUE
  return task_queue_urgent.reader != task_queue_urgent.writer ||
         task_queue_urgent.reader->write != task_queue_urgent.reader->read ||
         task_queue_normal.reader != task_queue_normal.writer ||
         task_queue_normal.reader->write != task_queue_normal.reader->read;
#else
  return task_queue_normal.reader != task_queue_normal.writer ||
         task_queue_normal.reader->write != task_queue_normal.reader->read;
#endif
}
int fio_defer_has_queue ( void ) { #if FIO_USE_URGENT_QUEUE return task_queue_urgent . reader != task_queue_urgent . writer || task_queue_urgent . reader -> write != task_queue_urgent . reader -> read || task_queue_normal . reader != task_queue_normal . writer || task_queue_normal . reader -> write != task_queue_normal . reader -> read ; #else return task_queue_normal . reader != task_queue_normal . writer || task_queue_normal . reader -> write != task_queue_normal . reader -> read ; #endif }
Returns true if there are deferred functions waiting for execution.
Returns true if there are deferred functions waiting for execution .