-1

我想编写一个 c++ 模板函数,该函数将要执行的函数作为参数并在 Windows 8 Metro 的主线程上执行。主线程将是 System. 有什么帮助吗?就像是 :

    template <class T>
    ExecuteOnMainThread(T t)
    {
    }
4

1 回答 1

1

你应该看看CoreDispatcher.RunAsync

于 2013-04-15T19:59:42.120 回答