GiD - The personal pre and post processor

GiD_PostIsThreadSafe

int GiD_PostIsThreadSafe( GiD_PostMode format ); // returns -1 on error

Description: returns 1 if format can be used thread-safe or not. Some HDF5 compilations are not thread-safe. Thread-safe is required to open and write on several separated gidpost files at the same time. For instance, some HDF5 compilations are not thread-safe, and can not be used to write several hdf5 files at the same time from the same program.

Parameters:
GiD_PostMode format

format = GiD_PostAscii | GiD_PostAsciiZipped | GiD_PostBinary | GiD_PostHDF5

Example:
C/C++

if ( GiD_PostIsThreadSafe( GiD_PostHDF5) == 0) { printf( "gidpost HDF5 is not thread safe, please open and write on a single HDF5 file.\n"); }

COPYRIGHT © 2022 · GID · CIMNE