[Opensim-dev] [Opensim-commits] r4225 - trunk/OpenSim/Framework

Ursula MATOVA ursula.matova at klintcentral.net
Tue Apr 15 16:52:05 UTC 2008


Hi All,

Seems to solve the 100% CPU Issue ( Mono / Linux 32 ).

Actualy texting SVN.4236 : And everything seems ok :) ( wasn't the  
case in SVN.4215 ).

Thanks a lot,

Ursula.


Le 14 avr. 08 à 16:37, sdague at opensimulator.org a écrit :

> Author: sdague
> Date: 2008-04-14 07:37:36 -0700 (Mon, 14 Apr 2008)
> New Revision: 4225
>
> Modified:
>   trunk/OpenSim/Framework/BlockingQueue.cs
> Log:
> Possible fix for the 100% CPU issue.  I've not fully
> confirmed that this fixes the issue, however functional
> correctness of BlockingQueue requires that these locks be
> put into place anyway.
>
>
> Modified: trunk/OpenSim/Framework/BlockingQueue.cs
> ===================================================================
> --- trunk/OpenSim/Framework/BlockingQueue.cs	2008-04-14 03:20:36 UTC  
> (rev 4224)
> +++ trunk/OpenSim/Framework/BlockingQueue.cs	2008-04-14 14:37:36 UTC  
> (rev 4225)
> @@ -67,12 +67,18 @@
>
>         public int Count()
>         {
> -            return m_queue.Count;
> +            lock(m_queueSync)
> +	    {
> +		return m_queue.Count;
> +	    }
>         }
>
>         public T[] GetQueueArray()
>         {
> -            return m_queue.ToArray();
> +            lock (m_queueSync)
> +            {
> +                return m_queue.ToArray();
> +            }
>         }
>     }
> }
>
> _______________________________________________
> Opensim-commits mailing list
> Opensim-commits at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-commits
>




More information about the Opensim-dev mailing list