-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
LEAVE 없이 BEGIN TASK 가 연속으로 두번 이상 불려졌을 때
microthread::task a([](){
printf("hello\n");
flowcontrol::delay(time::second(1));
printf("world\n");
});
a.schedule();
microthread::task c([&a](){
a.join();
printf("a joined\n");
});
c.schedule();a 가 실행된 상태에서 world가 출력되고 a가 끝나고 바로 join중인 c로 스위치됨
begin(a) -> begin(c) -> leave(c) -> leave(a)
Reactions are currently unavailable