template<typename F>
struct Arachne::ThreadInvocation< F >
This structure is used during thread creation to pass the function and arguments for the new thread's top-level function from a creating thread to the core that runs the new thread. It also ensures that the arguments will fit in a single cache line, since they will be stored in a single cache line.
- Template Parameters
-
F | The type of the return value of std::bind, which is a value type of unspecified class. |
This wrapper enables us to bypass the dynamic memory allocation that is sometimes performed by std::function.