Win32 QueueUserAPC API alternative in .NET -
what closest .net alternative queueuserapc? should use synchronizationcontext.post that?
modern .net tries abstract away raw threading, , replace higher level libraries such task parallel library (tpl) or reactive extensions.
i not sure in .net there "alertable" state thread, can obtain sleepex
, can use tpl queue work item on process thread pool.
task.start( () => { /* work * });
this works particularly if you're doing sort of asynchronous io operation in there, allow same thread reused running queued task, while original task doing asynchronous operation.
Comments
Post a Comment