#286: an unbuffered file handle - a HANDLE on Windows, an O_DIRECT descriptor (as a pointer-sized integer) on Linux.
| 853 | |
| 854 | /// #286: an unbuffered file handle - a HANDLE on Windows, an O_DIRECT descriptor (as a pointer-sized integer) on Linux. |
| 855 | void close_direct(void* h) { |
| 856 | #if defined(_WIN32) |
| 857 | CloseHandle((HANDLE) h); |
| 858 | #else |
| 859 | ::close((int) (intptr_t) h); |
| 860 | #endif |
| 861 | } |
| 862 | |
| 863 | #if defined(__linux__) |
| 864 | /// #3237: how fast this drive serves the experts' reads the two ways the file tier can take them - O_DIRECT preads of |
no test coverage detected