jacksonh/manos — pull request #139 by txdv (2012-02-06 17:26:40+00:00)
Title: Add INotifier.

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, () => {
lock (queue) {
var item = queue.Dequeue ();
if (callback != null) {
callback (item);
}
}
});
}

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