summaryrefslogtreecommitdiff
path: root/examples/ucontext-cp.c
AgeCommit message (Collapse)Author
2019-11-19Avoid redefined warning of "SIGSTKSZ"Jackie Liu
ucontext-cp.c:24:0: warning: "SIGSTKSZ" redefined #define SIGSTKSZ 8192 In file included from /usr/include/signal.h:316:0, from ucontext-cp.c:13: /usr/include/aarch64-linux-gnu/bits/sigstack.h:30:0: note: this is the location of the previous definition #define SIGSTKSZ 16384 Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-10-01examples/ucontext-cp.c: get rid of c99 style declarationsJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-22examples/ucontext-cp: more complex example to show how ucontext works李通洲
Allow multiple files being copied in one command, and print more logs Also add timeout to indicate that different coroutines run in parallel actually Signed-off-by: 李通洲 <carter.li@eoitek.com>
2019-09-20examples/ucontext-cp: style fixupsJens Axboe
No functional changes. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-09-20examples/ucontext-cp: use ucontext with liburing李通洲
Coroutines are often used to simplify async programming, and work great with liburing. `ucontext` doesn't perform very good, but it's enough for an example.