[Mono-list] Monitor: Pluse() and Wait() - alternative ?

mwessendorf matzew at apache.org
Tue Aug 9 09:34:08 EDT 2011


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=svn12&r=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.


More information about the Mono-list mailing list