Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
321 B

using System;
namespace Sync_Ueb04_NestedMonitor
{
class BlackHole {
private NotifyingQueue<String> queue = new NotifyingQueue<String>();
public void Put(String thing) {
queue.Enqueue(thing);
}
public String Get() {
return queue.Dequeue();
}
}
}