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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -