Problem: invoking the conditional variable for zero time is expensive
Solution: for zero timeout, unlock and relock immediately instead of timedwait
Showing
Please
register
or
sign in
to comment
Solution: for zero timeout, unlock and relock immediately instead of timedwait