Skip to content

Commit 2afc6ab

Browse files
committed
improve code formatting
1 parent 50c9788 commit 2afc6ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ScanFile.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ bool CScanFile::LockFreecInit()
252252
this->_threadFinishSpinlock.store(false, std::memory_order_relaxed);
253253
this->_threadOperationReadStartSpinlock.store(false, std::memory_order_relaxed);
254254
this->_threadOperationReadCompletedSpinlock.store(false, std::memory_order_relaxed);
255-
this->_pThreadReadBuffer = nullptr;
256-
this->_threadReadBufferSize = 0;
255+
this->_pThreadReadBuffer = nullptr;
256+
this->_threadReadBufferSize = 0;
257257
this->_threadActuallyReadBytes = 0;
258-
this->_threadReadSucceeded = false;
258+
this->_threadReadSucceeded = false;
259259
// no need to synchronize before worker thread is started
260260

261261
// This is a dirty hack for speedup inter-thread communication on hyperthreading CPUs
@@ -321,10 +321,10 @@ bool CScanFile::LockFreeReadStart(char* const buffer, const size_t bufferLength)
321321
assert(this->_threadOperationReadStartSpinlock.load(std::memory_order_relaxed) == false);
322322
assert(this->_threadOperationReadCompletedSpinlock.load(std::memory_order_relaxed) == false);
323323

324-
this->_pThreadReadBuffer = buffer;
325-
this->_threadReadBufferSize = bufferLength;
324+
this->_pThreadReadBuffer = buffer;
325+
this->_threadReadBufferSize = bufferLength;
326326
this->_threadActuallyReadBytes = 0;
327-
this->_threadReadSucceeded = false;
327+
this->_threadReadSucceeded = false;
328328

329329
this->_threadOperationReadStartSpinlock.store(true, std::memory_order_release);
330330

0 commit comments

Comments
 (0)