Skip to content

[syncd_flex_counter.cpp]: Move lock_guard to narrow scope#256

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
marian-pritsak:lock
Nov 6, 2017
Merged

[syncd_flex_counter.cpp]: Move lock_guard to narrow scope#256
qiluo-msft merged 1 commit intosonic-net:masterfrom
marian-pritsak:lock

Conversation

@marian-pritsak
Copy link
Contributor

lock_guard holds mutex during sleep, which does not allow other threads
to acquire it for most of time. It is moved to a scope that actually
needs this mutex.

Signed-off-by: marian-pritsak [email protected]

lock_guard holds mutex during sleep, which does not allow other threads
to acquire it for most of time. It is moved to a scope that actually
needs this mutex.

Signed-off-by: marian-pritsak <[email protected]>
@marian-pritsak
Copy link
Contributor Author

Since #241

@lguohan
Copy link
Contributor

lguohan commented Nov 6, 2017

@qiluo-msft to review.

@qiluo-msft qiluo-msft merged commit 5dddf52 into sonic-net:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants