jacksonh/manos — pull request #138 by txdv (2012-02-06 17:20:11+00:00)
Title: awesome Notifier

The Notifier is an awesome tool to write thread safe communication classes.
Imagine you have two loops in different threads and you want communicate between them.

for example, something as easy as this could be implemented in order to provide convenient communication between loops in different threads:

```csharp
class Notifier
{
Queue queue;
Notifier notifier
Notifier (Context context, Action callback)
{
context.CreateNotifier (context, () => {
var item = queue.Dequeue ();
if (callback != null) {
callback (item);
}
});
}

public void Notify (T data)
{
queue.Enqueue(data);
}
}
```