Re: [RFC 1/3] lib/coroutine: add coroutine library

2023-04-26 Thread Ferruh Yigit
On 4/24/2023 2:02 PM, Chengwen Feng wrote: > This patch adds coroutine library. The main elements are: > 1. scheduler: container of coroutines, which is responsible for > scheduling coroutine. > 2. coroutine: Minimum scheduling unit, it should associated to one > scheduler. > > In the coroutine ca

[RFC 1/3] lib/coroutine: add coroutine library

2023-04-24 Thread Chengwen Feng
This patch adds coroutine library. The main elements are: 1. scheduler: container of coroutines, which is responsible for scheduling coroutine. 2. coroutine: Minimum scheduling unit, it should associated to one scheduler. In the coroutine callback, application could invoke rte_co_yield() to give u