8000 Set task execution to happen on the main thread · Issue #169 · RaftLib/RaftLib · GitHub
[go: up one dir, main page]

Skip to content

Set task execution to happen on the main thread #169

@barsdeveloper

Description

@barsdeveloper

Hello,
I'm investigating the use of this awesome library for a project I'm working on. More specifically I need to be able to run some of the tasks on the main thread because of limitation of the framework I'm using.
Let's say I have the following graph (sorry for the bad pseudo code, I hope you understand)

main_thread(a) <= raft::kset( main_thread(b), c )

b and c can be parallelized but I want for example a and b to run on the main thread, is it possible to express such condition?
On the main thread a is executed then b and c must be executed but b must also run in the main thread, so it can submit c to some thread pool, provide input from a and keep executing b in the same thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0