I have a question regarding C# CF v 1.1 which I'm developing in at the
moment. I hope that someone have time to read this and perhaps give a
some pointers =)
My problem is the abscence of the Monitor.Wait() and
I'm using threads in my application, and one of these Threads are
going to run a method called something like
The thing is that this Thread should be locked until data is
available, and the method getData is therefore placed in a Monitor,
something like this:
public SomeThing getData()
while(data.Count < 1)
How can I lock a Thread in CF? I've though about Mutex/Semaphore but
can't figure out how to allow a Thread to Wait, do it's thing and then
go back to Wait() again?
I'd appreciate any help I can get!