Skip to content

How to migrate this DirectX example to winui3 desktop from UWP. #8071

Answered by DarranRowe
ifgotmoney asked this question in Q&A
Discussion options

You must be logged in to vote

As I said in your question in the Windows App SDK discussions, the dispatcher queue is NOT a proper replacement for a thread pool. You want to be using the thread pool, either through the ThreadPool runtime class or through the Windows Thread Pool API.
I also have to ask at this point, since this is a capturing lambda, have you confirmed that this isn't a lambda lifetime issue? This is a general C++ knowledge issue. The simplest way to test that out would be to make the lambda into a member function.

Replies: 2 comments 7 replies

Comment options

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

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

@ifgotmoney
Comment options

@DarranRowe
Comment options

@castorix
Comment options

@ifgotmoney
Comment options

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