public void SetCallback(SendTimeTick ev) { lock (_threadLock) { _delegate = ev; } }
protected void SetRunnable(bool value) { lock (_threadLock) { _isRunnable = value; if (!value) { _delegate = null; } } }