Repository navigation
ThreadPoolFn task = fn(args) {
int* r = (int*) args[0];
*r = 1;
};
foreach (&v : result) {
pool.push(task, *v)!; // HERE, not works
} |
Answered by
lerno
Jun 8, 2026
Replies: 1 comment 2 replies
|
Try this ThreadPoolFn task = fn(args) {
int** r = (int**) args[0];
**r = 1;
};
foreach (&v : result) {
pool.push(task, v)!;
} |
2 replies
Answer selected by
lost22git
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this