Adar Dembo has posted comments on this change.

Change subject: Add ThreadRestrictions-aware LockGuard and UniqueLock
......................................................................


Patch Set 4:

> Also not sure I follow this. Typically these asserts would go in
 > the lock implementations themselves, rather than the guards, so
 > that you catch _all_ cases of waiting on the lock, not just the
 > ones that use our own custom wrapper.

Just to add one more thought: a lock guard like this would be used for 
acquiring all kinds of locks, but we should only call AssertWaitAllowed() when 
acquiring sleeping locks (i.e. not spinlocks).

-- 
To view, visit http://gerrit.cloudera.org:8080/7011
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I87760f2721abab857165ad6e5ac6ac946992a927
Gerrit-PatchSet: 4
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: David Ribeiro Alves <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>
Gerrit-HasComments: No

Reply via email to