public bool SetBlocks(byte[] bufffer, int offset, int size) { using (new LockWait(ref _lockParam)) { return(_packetQueue.SetBlock(bufffer, offset, size)); } }
public bool SetBlocks(byte[] bufffer, int offset, int size) { lock (lockObject) { return(packetQueue.SetBlock(bufffer, offset, size)); } }