Asyn proposals.

Objective:

  

1, threadpool + blocking queue

fn main
    enQueue(waitTrig)
    
fn waitTrig    
    print 'Wait Trig Done'
    enQueue(startOtf)
    enQueue(PrepareNextJob)
fn    startOtf
    enQueue(waitGrabDone)
    enQueue(Inspect)
    
fn    waitGrabDone
    enQueue(waitTrig)

 

2, javascript promise

3, c++ future

http://www.cnblogs.com/haippy/p/3279565.html

http://blog.csdn.net/liuxuejiang158blog/article/details/17354115

http://stackoverflow.com/questions/12620186/futures-vs-promises

http://stackoverflow.com/questions/11004273/what-is-stdpromise

http://stackoverflow.com/questions/20974022/c-futures-promises-like-javascript

4, javascript callback

5,impl a asyn functions in node.js

https://blog.scottfrees.com/building-an-asynchronous-c-addon-for-node-js-using-nan

 5.asyn await

https://msdn.microsoft.com/en-us/library/hh191443.aspx

http://huan-lin.blogspot.com/2016/01/async-and-await.html

http://www.cnblogs.com/jesse2013/p/async-and-await.html

 

Powered by Jekyll and Theme by solid

本站总访问量