Skip to content

Commit 0c60365

Browse files
committed
change code formatting
1 parent d085b52 commit 0c60365

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

ScanFile.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,30 @@ class CScanFile
3636
void LockFreeThreadProc();
3737

3838
protected:
39-
HANDLE _hFile = nullptr;
39+
HANDLE _hFile = nullptr;
4040

4141
// For memory mapping:
42-
HANDLE _hFileMapping = nullptr;
43-
void* _pViewOfFile = nullptr;
42+
HANDLE _hFileMapping = nullptr;
43+
void* _pViewOfFile = nullptr;
4444

4545
// For async IO:
46-
HANDLE _hAsyncEvent = nullptr;
47-
LARGE_INTEGER _asyncFileOffset = {};
48-
OVERLAPPED _asyncOverlapped = {};
49-
bool _asyncOperationInProgress = false;
46+
HANDLE _hAsyncEvent = nullptr;
47+
LARGE_INTEGER _asyncFileOffset = {};
48+
OVERLAPPED _asyncOverlapped = {};
49+
bool _asyncOperationInProgress = false;
5050

5151
// Separate thread + Lock free:
52-
HANDLE _hThread = nullptr;
53-
bool _threadOperationInProgress = false; // for protection against wrong API usage, not for use in a worker thread, no memory protection
52+
HANDLE _hThread = nullptr;
53+
bool _threadOperationInProgress = false; // for protection against wrong API usage, not for use in a worker thread, no memory protection
5454
// Spin lock variables:
5555
// We could use kernel-mode events instead of spin locks, it will save CPU, but will loose time during synchronization (switch to kernel).
5656
alignas(std::hardware_constructive_interference_size) // small speedup to get a bunch of variables into single cache line
57-
bool _threadFinishSpinlock = false;
58-
bool _threadOperationReadStartSpinlock = false;
59-
bool _threadOperationReadCompletedSpinlock = false;
57+
bool _threadFinishSpinlock = false;
58+
bool _threadOperationReadStartSpinlock = false;
59+
bool _threadOperationReadCompletedSpinlock = false;
6060
// other data protected by spin locks:
61-
char* _pThreadReadBuffer = nullptr;
62-
size_t _threadReadBufferSize = 0;
63-
size_t _threadActuallyReadBytes = 0;
64-
bool _threadReadSucceeded = false;
61+
char* _pThreadReadBuffer = nullptr;
62+
size_t _threadReadBufferSize = 0;
63+
size_t _threadActuallyReadBytes = 0;
64+
bool _threadReadSucceeded = false;
6565
};

0 commit comments

Comments
 (0)