/[svn]/libgig/trunk/src/RIFF.h
ViewVC logotype

Diff of /libgig/trunk/src/RIFF.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3915 by schoenebeck, Mon Jun 7 18:57:17 2021 UTC revision 3916 by schoenebeck, Mon Jun 7 19:42:17 2021 UTC
# Line 406  namespace RIFF { Line 406  namespace RIFF {
406                  stream_mode_t Mode; ///< State of handles (ro, rw, closed).                  stream_mode_t Mode; ///< State of handles (ro, rw, closed).
407              };              };
408              struct IO : HandlePair {              struct IO : HandlePair {
409                    bool isPerThread; ///< Whether SetIOPerThread(true) was called.
410                  mutable std::map<std::thread::id,HandlePair> byThread; ///< Optional: Individual file handle pair for each thread separately.                  mutable std::map<std::thread::id,HandlePair> byThread; ///< Optional: Individual file handle pair for each thread separately.
411                  mutable std::mutex mutex; ///< For protecting concurrent changes on the @c byThread map itself and replacing handles.                  mutable std::mutex mutex; ///< For protecting concurrent changes on the @c byThread map itself and replacing handles.
412              } io;              } io;
# Line 434  namespace RIFF { Line 435  namespace RIFF {
435              int FileOffsetSizeFor(file_offset_t fileSize) const;              int FileOffsetSizeFor(file_offset_t fileSize) const;
436              void Cleanup();              void Cleanup();
437              HandlePair& FileHandlePairUnsafeRef();              HandlePair& FileHandlePairUnsafeRef();
438                bool SetModeInternal(stream_mode_t NewMode, bool* pResetPos);
439      };      };
440    
441      /**      /**

Legend:
Removed from v.3915  
changed lines
  Added in v.3916

  ViewVC Help
Powered by ViewVC