private void SpinInfinite() { while (!terminate) { uint rc = context.Update(); if (rc == 0) sessionManager.Update(context); } }