I am trying to use openMP, and I have this one function that can never be run two times at the same time. In another world, this would not be a problem:
int foo(void){
mutex->lock();
....
mutex->release();
}
How can I achieve the same thing in OpenMP?