I am considering using OpenMP for multithreading in C ++. But I wonder if there is a way to tell the thread not to wait for another parallel thread and continue working with my program? (Maybe I can undo / kill other threads?)
I am aware of the existence of the “nowait” sentence, but I want the decision to “wait” or “not wait” to be executed dynamically (the program will decide depending on the results of the process that I am doing).
Hope I can get some advice on this.
Thanks in advance.
source
share