-
- Downloads
Convenience attr constructor for a thread with a small stack
Our sched::thread makes it rather difficult to create threads with non-default attributes. This patch makes it easier to create a thread with a non-default stack size, e.g., a light thread with a one-page stack: sched::thread a([&] { func(); }, sched::thread::attr(4096)) We should probably overhaul the sched::thread constructors at some point to make it easier to specify options, but for now, this specific constructor is convenient for my uses. Signed-off-by:Nadav Har'El <nyh@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Please register or sign in to comment