3 #ifndef INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_
4 #define INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_
44 struct AsyncFileIoServiceData;
54 friend class AsyncFileIo;
60 #endif // INCLUDE_NN_NLIB_THREADING_ASYNCFILEIO_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#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.
Defines that class that is corresponding to std::unique_ptr.
bool Write(BinaryWriter *w, T x)
You can write user-defined class objects by specializing this function template.
nlib_fd GetFd() const noexcept
Gets nlib_fd.
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.
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.