I’m trying to figure out Win8 C# threading, I know I should be using the ThreadPool class, but what I dont know is how to write my method to work with that.
IAsyncAction MainThread = Windows.System.Threading.ThreadPool.RunAsync(new WorkItemHandler(mainLoop));
public void mainLoop() { ... }
That’s what my best attempt at this is so far, it’s telling me no overload for mainLoop matches the WorkItemHandler delegate, but I have no idea what that means or how to fix it.
It means that
mainLoopmust have the following signature:You can quickly solve compiler errors you don’t understand by Googling the message, optionally adding
site:stackoverflow.com.