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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -