GiD - The personal pre and post processor

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

mode = 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");
  }
  • No labels