3 ms·
Oh, I forgot, you also probably want to be able to pass a a pointer sized argument to the next coroutine (and get one back); In the previous prototypes, convert
by gpderetta 6y ago
Oh, I forgot, you also probably want to be able to pass a a pointer sized argument to the next coroutine (and get one back); In the previous prototypes, convert all uses of 'ctx * ' to plain 'ctx', where ctx is:
struct ctx { void * sp;, void * payload; };
If you get things just right, at least on linux, you can get ctx to always be passed and returned via registers.
edit: HN ate my asterisks.