LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::AlwaysReadExclusiveWrite Struct Reference

Description

Default policy for Import/Export paclets - always allow reading, deny writing when we write.

Note
This policy allows for reading from the file when other applications are writing to it which may have unexpected consequences.
+ Inheritance diagram for LLU::AlwaysReadExclusiveWrite:
+ Collaboration diagram for LLU::AlwaysReadExclusiveWrite:

#include <FileUtilities.h>

Public Member Functions

int flag (std::ios::openmode m) const override
 Base share policy - shared read access when file opened readonly, exclusive access otherwise. More...
 

Member Function Documentation

◆ flag()

int LLU::AlwaysReadExclusiveWrite::flag ( std::ios::openmode  ) const
overridevirtual

Base share policy - shared read access when file opened readonly, exclusive access otherwise.

Returns
_SH_SECURED on Windows and 0 on other platforms where it is not used anyway

Reimplemented from LLU::SharePolicy.