I am going to C ++ from Objective-C and have a problem ... This works: -
function1(char *filePath) {
Box box(filePath); // construct/create a box using filePath
// can use box in this function and destructor is called when function exits
}
However, I need something like this, where functions1 and function2 are called asynchronously.
Box *boxPool[25];
function1(int item, char *filePath) {
boxPool[item](filePath);
}
function2(int item) {
}
source
share