You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there is a line of code in pollPage() of ExchangeClient that checking current thread not hold the monitor lock, could any one explain why this check is needed? Thank you.
public SerializedPage pollPage()
{
checkState(!Thread.holdsLock(this), "Can not get next page while holding a lock on this");
......
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hello all,
I noticed that there is a line of code in pollPage() of ExchangeClient that checking current thread not hold the monitor lock, could any one explain why this check is needed? Thank you.
public SerializedPage pollPage()
{
checkState(!Thread.holdsLock(this), "Can not get next page while holding a lock on this");
......
}
Beta Was this translation helpful? Give feedback.
All reactions