c - Asynchronous APIs -


when trying implement asynchronous api calls / non-blocking calls, know little in plain-c application have, read apm (asynchronous programming model) 'delegates'. want call 1 api f1() functionality(which takes long time 8-10 seconds), call api f1(), forget it, , continue doing other work, e.g. i/o fetch data next call of f1() or functionality not dependent on result of f1().

if 1 has used apm model of programming, looking @ concise explanation implementing non-blocking calls.

is there other way of implementing asynchronous apis , other library/framework might in this?

you need create multi-threaded (or multi-process) application. f1() api needs spawn thread (or process) process data in separate execution space. when completes, f1() routine needs signal main process execution done (signal(), message queues, etc).


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -