Thank you all for your fantasic help!!
@Ganado:
I got it with:
#include "mingw.thread.h"
. No more linking-errors...
@Thomas1965
I'm german.
std::async is a higher level interface, pretty easy to use. |
I red a bit about yesterday but i've to admit, that this high-level-cpp is not easy to understand by theory only. Therefore, trying around a bit with it, will be the best.
It took a while, to figure out that i will have to use
std::ref(foo)
in most cases, but now i think i have implemented a first working std::asyc-call. (Yeah!!)
Will be very interesting to find out, which parts of my script-interpreter can be executed asynchron without producing conflichts. Mybe i'll implent a "async"-statement into the script-language.
---
@TheToaster
In terms of pointers to const, you can figure out its meaning by reading the line backwards: |
This is a good hint. Especially this will make it easier to undestand other-peoples code. In my own code, using const sometimes lead to type-problems - probably due to somehow 'dirty' programming. But if i would really clean up my code, this would take years....
So, thanks again to all of you!
Best,
Frank