Static Analysis Problem Type Reference
A function that is not thread safe was called within a multi-threaded environment.
The functions that interact with the file system are not thread-safe, so care should be taken to avoid race conditions.
|
ID |
Code Location |
Description |
|---|---|---|
|
1 |
Call site |
The place where the function was called |
#include <stdio.h>
int main(int argc, char **argv)
{
FILE * f;
#pragma omp parallel
{
f = fopen("abc.txt", "rb");
}
fclose(f);
return 0;
}