FirstStructure first = {};
SecondStructure second = {};
char buffer[1024] = {};
second.init(); // set some attributes
int fd = second.get();
// L9: first = second.getMore(fd);
// L11: std::thread t1(&SecondStructure::getMore, &first, fd);
// printf("%d\n", first.firstAtr);
// printf("%d\n", first.secAtr);
I'd like to execute L9
with thread
.
On the L11
is some of my trying, it doesn't work, so feel free to ignore it.
Thanks for some help!