Skip to content
Snippets Groups Projects
Commit 74cbbea7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

lock access to NCZARR in CDI_Threadsafe mode

parent 14965a4a
No related branches found
No related tags found
1 merge request!102M214003/develop
......@@ -5,6 +5,7 @@
2024-10-24 Uwe Schulzweida
* lock access to NCZARR in CDI_Threadsafe mode
* Renamed interface functions streamXXXRecord to streamXXXField
2024-10-22 Uwe Schulzweida
......
......@@ -674,7 +674,8 @@ streamOpenID(const char *filename, char filemode, int filetype, int resH)
#ifndef HAVE_LIBPTHREAD
Error("CDI threadsafe failed, pthread support not compiled in!");
#endif
if (filetype == CDI_FILETYPE_NC4 || filetype == CDI_FILETYPE_NC4C) streamptr->lockIO = true;
if (filetype == CDI_FILETYPE_NC4 || filetype == CDI_FILETYPE_NC4C || filetype == CDI_FILETYPE_NCZARR)
streamptr->lockIO = true;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment