eventdev: clarify the worker thread workflow
[dpdk.git] / lib / librte_eventdev / rte_eventdev.h
index 9428433..a248fe9 100644 (file)
  * operation. Instead, Event drivers export Poll-Mode enqueue and dequeue
  * functions to applications.
  *
- * An event driven based application has following typical workflow on fastpath:
- * \code{.c}
- *     while (1) {
- *
- *             rte_event_schedule(dev_id);
- *
- *             rte_event_dequeue(...);
- *
- *             (event processing)
- *
- *             rte_event_enqueue(...);
- *     }
- * \endcode
- *
  * The events are injected to event device through *enqueue* operation by
  * event producers in the system. The typical event producers are ethdev
  * subsystem for generating packet events, CPU(SW) for generating events based
  * indicates the device is centralized and thus needs a dedicated scheduling
  * thread that repeatedly calls rte_event_schedule().
  *
+ * An event driven worker thread has following typical workflow on fastpath:
+ * \code{.c}
+ *     while (1) {
+ *             rte_event_dequeue_burst(...);
+ *             (event processing)
+ *             rte_event_enqueue_burst(...);
+ *     }
+ * \endcode
+ *
  */
 
 #ifdef __cplusplus