how can wait 2 or more things (with different types) @ same time? in event loop:
while(true) { ppl::task<letter> msg1 = waitforletter(); //one letter month ppl::task<sms> msg2 = waitforsms(); //one sms hour //wait_any. how tasks of different types? }
i'll answer own post.
"ppl power pack" supports "heterogeneous when_any":
https://pplpp.codeplex.com/wikipage?title=heterogeneous%20when_any
on unrelated note seems few people use ppl. there 97 ppl tagged questions on stackoverflow. have no answers. (tbb has 450, seems more active community)
Comments
Post a Comment