Asynchronous threads in standard C ++

I wonder how I could implement an asynchronous call in standard C ++.

I have an image / video processing program and I want to add another function / function, but I would like it to run in another thread or to execute asynchronously with the original thread.

I just want to tell the main thread when something happened in this new thread. (This does not always happen, and there is no reason why the main thread should wait for the completion of this new process. Therefore, I prefer asynchronous calling if it's easier than multi-threaded programming)

I hope I am on the right track.

Thanks in advance.

Ignacio.

UPDATE: Currently, I am not using any stream library yet, because so far I do not need it. I thought at Boost ... is this a good idea? Where should I start If I want to receive some asynchronous calls?

+5
source share
1 answer

++ ​​, ++ 0x . . - , , ++ future ( ). , , . (, , gcc 4.5), / Boost ( Boost release - ).

- , . , , future; , - , , , .

+6

All Articles