public void finishIOScope(ref ThreadPoolCurrent current) { if(_finishWithIO) { // This must be called with the handler locked. current.finishMessage(true); } }
public void finishIOScope(ref ThreadPoolCurrent current) { if (_finishWithIO) { // This must be called with the handler locked. current.finishMessage(true); } }
public void finishIOScope(ref ThreadPoolCurrent current) { if (_finishWithIO) { lock (_mutex) { current.finishMessage(true); } } }
public void finishIOScope(ref ThreadPoolCurrent current) { if(_finishWithIO) { lock(_mutex) { current.finishMessage(true); } } }
public void destroy(ref ThreadPoolCurrent current) { if (_finish) { // // A ThreadPoolMessage instance must be created outside the synchronization // of the event handler. We need to lock the event handler here to call // finishMessage. // lock (_mutex) { current.finishMessage(false); Debug.Assert(!current.completedSynchronously); } } }
public void destroy(ref ThreadPoolCurrent current) { if(_finish) { // // A ThreadPoolMessage instance must be created outside the synchronization // of the event handler. We need to lock the event handler here to call // finishMessage. // lock(_mutex) { current.finishMessage(false); Debug.Assert(!current.completedSynchronously); } } }