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 |
Observation |
Description |
---|---|---|
1 |
Call site |
The place 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; }
Copyright © 2010, Intel Corporation. All rights reserved.