public RegionState()
 {
     if (m_stateWork == null) {
     m_stateWork = new BasicWorkQueue("OnStateChanged");
     }
     m_regionState = RegionStateCode.Uninitialized;
     m_regionStateLock = new Object();
 }
Esempio n. 2
0
        protected void InitVariables()
        {
            m_moduleName = System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name;
            m_isConnected = false;
            m_isLoggedIn = false;
            m_isLoggingIn = false;
            m_isLoggingOut = false;
            m_connectionParams = new ParameterSet();
            m_regionList = new Dictionary<OMV.UUID, LLRegionContext>();
            m_waitTilOnline = new List<ParamBlock>();
            m_commStatistics = new ParameterSet();
            m_waitTilLater = new BasicWorkQueue("CommDoTilLater");

            m_loginGrid = "Unknown";
        }
 private void ThrottleTextureRequestsCheck()
 {
     OMV.UUID binID = OMV.UUID.Zero;
     lock (m_textureQueue) {
     if (m_textureQueue.Count > 0 && m_currentOutstandingTextureRequests < m_maxOutstandingTextureRequests) {
         m_currentOutstandingTextureRequests++;
         binID = m_textureQueue.Dequeue();
     }
     }
     if (binID != OMV.UUID.Zero) {
     if (m_doThrottledTextureRequest == null) {
         m_doThrottledTextureRequest = new BasicWorkQueue("OSThrottledTexture" + m_numAssetContextBase.ToString());
     }
     m_doThrottledTextureRequest.DoLater(ThrottleTextureMakeRequest, binID);
     }
 }
 public UserInterfaceCommon() {
     m_workQueue = new BasicWorkQueue("UserInterfaceCommon");
     m_repeatTimer = new System.Threading.Timer(OnRepeatTimer); 
 }