mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-04-30 05:03:51 +00:00
feat: sync with Whoa implementation
This commit is contained in:
parent
12ab8f7721
commit
6928bf3f0c
46 changed files with 2980 additions and 441 deletions
|
|
@ -69,7 +69,7 @@ T* TSExportTableSyncReuse<T, THandle, TLockedHandle, TSync>::NewLock(THandle* ha
|
|||
template <class T, class THandle, class TLockedHandle, class TSync>
|
||||
void TSExportTableSyncReuse<T, THandle, TLockedHandle, TSync>::SyncEnterLock(TLockedHandle* lockedHandlePtr, int32_t forWriting) {
|
||||
this->m_sync.Enter(forWriting);
|
||||
*lockedHandlePtr = reinterpret_cast<TLockedHandle>(forWriting ? 1 : -1);
|
||||
*lockedHandlePtr = reinterpret_cast<TLockedHandle>(static_cast<intptr_t>(forWriting ? 1 : -1));
|
||||
}
|
||||
|
||||
template <class T, class THandle, class TLockedHandle, class TSync>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue