Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check whether worker threads spawn successfully #17

Open
LouisJenkinsCS opened this issue Jan 4, 2021 · 0 comments
Open

Check whether worker threads spawn successfully #17

LouisJenkinsCS opened this issue Jan 4, 2021 · 0 comments

Comments

@LouisJenkinsCS
Copy link
Contributor

Right now, in Montage, there is an assumption by the ParallelLaunch code that worker threads will always spawn successfully, i.e. there is no error checking or handling.

pthread_create (&threads[i], &attr, thread_main, &ctcs[i]);

I'm running into an issue where for some reason, I cannot seem to spawn any threads, but I assumed it did because no error was reported by Montage. Note that if the workers fail, after calling init, the main thread will just deadlock, waiting at the barrier for its non-existent brethren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant