3 #ifndef INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_ 4 #define INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_ 28 return Open(path, flags, 0644);
48 struct AsyncFileIoServiceData;
56 AsyncFileIoServiceData* data_;
64 #endif // INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_
#define NLIB_DISALLOW_COPY_AND_ASSIGN(TypeName)
Prohibits use of the copy constructor and assignment operator for the class specified by TypeName...
Class that controls asynchronous file I/O.
nlib_fd GetFd() const noexcept
Gets nlib_fd.
bool Write(BinaryWriter *w, T x)
You can write user-defined class objects by specializing this function template.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
A file that contains the configuration information for each development environment.
Class that gets the output of a different thread executing in a thread safe manner. This class is similar to the std::shared_future class of C++11.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
bool Read(BinaryReader *r, T *x)
You can read to user-defined class objects by specializing this function template.
Class that wraps asynchronous file I/O.
AsyncFileIoService() noexcept
Instantiates the object.