Skip to content
Discussion options

You must be logged in to vote

Can I ask a few silly questions since I'm new to coroutines, but eager to switch my oneTBB-based engine to TMC?

  1. Do I get it correctly that I can't place an aw_spawn_fork in a global struct and co_await it later from some other coroutine, not the one that spawned it?
    (my assumption comes from that aw_spawn_fork doesn't have a default constructor, so putting it in a struct is tricky. Moreover, you mentioned in the docs that they contain pointers to this, which I got at "you must always co_await the results of fork() within the coroutine that spawned them").

What would be the best way for the following scenario:

  • from one function, I run two tasks and return
  • in another function, which hap…

Replies: 35 comments 61 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tzcnt
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tzcnt
Comment options

Comment options

You must be logged in to vote
7 replies
@tzcnt
Comment options

tzcnt Dec 9, 2025
Maintainer

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

Comment options

You must be logged in to vote
1 reply
@tzcnt
Comment options

tzcnt Jan 6, 2026
Maintainer

Comment options

You must be logged in to vote
4 replies
@tzcnt
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

Comment options

You must be logged in to vote
5 replies
@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

Comment options

You must be logged in to vote
5 replies
@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

Comment options

You must be logged in to vote
2 replies
@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
8 replies
@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
8 replies
@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
5 replies
@tzcnt
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
3 replies
@tzcnt
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
3 replies
@solbjorn
Comment options

@tzcnt
Comment options

@solbjorn
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@tzcnt
Comment options

tzcnt Feb 8, 2026
Maintainer

@pfeatherstone
Comment options

@solbjorn
Comment options

@tzcnt
Comment options

tzcnt Feb 9, 2026
Maintainer

@solbjorn
Comment options

Comment options

You must be logged in to vote
1 reply
@tzcnt
Comment options

tzcnt Apr 8, 2026
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #124 on October 20, 2025 03:07.