Method LockAndSortForSyncAccess
LockAndSortForSyncAccess(out UnsafeList<LogMessage>, out UnsafeList<LogMessage>)
Enters the exclusive lock for DispatchQueue to get the access for both buffers till EndLockAfterSyncAccess() is called.
Declaration
public void LockAndSortForSyncAccess(out UnsafeList<LogMessage> olderMessages, out UnsafeList<LogMessage> newerMessages)
Parameters
Type | Name | Description |
---|---|---|
UnsafeList<LogMessage> | olderMessages | Returns the buffer with older messages (read buffer) |
UnsafeList<LogMessage> | newerMessages | Returns the buffer with newer messages (write buffer) |