Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?
Hi Jonathan, see here: http://msdn.microsoft.com/en-us/library/de0542zz%28v=VS.100%29.aspx (note that Portable Class Library supports Enter()) and here: http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse%28v=VS.100%29.aspx (not supported in PCL) Yes, it's kinda odd - and PCL does remind me of J2ME :) -Matthias On Tue, Aug 9, 2011 at 11:53 PM, Jonathan Pryor jonpr...@vt.edu wrote: On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I find it rather odd that Monitor.Pulse() isn't in there, given that it's in Silverlight 3, 4, WP7, Xbox 360, and every version of .NET ever released [0, 1]. - Jon [0] http://msdn.microsoft.com/en-us/library/system.threading.monitor(VS.95).aspx [1] http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse.aspx -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?
On 09.08.2011 23:53, Jonathan Pryor wrote: On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I find it rather odd that Monitor.Pulse() isn't in there, given that it's in Silverlight 3, 4, WP7, Xbox 360, and every version of .NET ever released [0, 1]. Monitor.Pulse[All]() is not available in the Xbox/XNA profile. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Monitor: Pluse() and Wait() - alternative ?
Hi, I am building a blocking queue implementation (which behaves like the JAva LinkedBlockingQueue). I found the following implementation, which works great: http://code.google.com/p/netconcurrent/source/browse/trunk/src/Spring/Spring.Threading/Threading/Collections/LinkedBlockingQueue.cs?spec=svn12r=12 However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL I tried to simulate it with WaitHandle.SignalAndWait(), but that's exactly what I want. I saw the Pluse() / Wait() code, and noticed that its implementation is OS specific, written in C. I wonder if there is an alternative for Monitor.Pluse() / Monitor.Wait(), that runs on PCL (or if I can (somehow) build this with language features) Thanks! -- View this message in context: http://mono.1490590.n4.nabble.com/Monitor-Pluse-and-Wait-alternative-tp3729942p3729942.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] Monitor: Pluse() and Wait() - alternative ?
On Aug 9, 2011, at 9:34 AM, mwessendorf wrote: However I need to ensure this runs on the PCL (Portable Class Library) and therefore the above implementation does not work, since Pluse() / Wait() aren't supported in PCL Where can I find a listing of the types and members in the PCL? I find it rather odd that Monitor.Pulse() isn't in there, given that it's in Silverlight 3, 4, WP7, Xbox 360, and every version of .NET ever released [0, 1]. - Jon [0] http://msdn.microsoft.com/en-us/library/system.threading.monitor(VS.95).aspx [1] http://msdn.microsoft.com/en-us/library/system.threading.monitor.pulse.aspx ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list