sources for 1.3

This commit is contained in:
Guenter Obiltschnig
2006-11-17 16:21:51 +00:00
parent 7ff71d107f
commit 768642ae98
744 changed files with 6781 additions and 1036 deletions

View File

@@ -1,7 +1,7 @@
//
// AbstractEvent.h
//
// $Id: //poco/1.2/Foundation/include/Poco/AbstractEvent.h#3 $
// $Id: //poco/1.3/Foundation/include/Poco/AbstractEvent.h#1 $
//
// Library: Foundation
// Package: Events
@@ -76,12 +76,15 @@ class AbstractEvent
/// ...
/// };
///
/// Throwing the event can be done either by the events notify or notifyAsync method:
/// Throwing the event can be done either by the events notify() or notifyAsync() method:
///
///
/// Alternatively, instead of notify(), operator () can be used.
///
/// void MyData::setAge(int i)
/// {
/// this->_age = i;
/// AgeChanged.notify(this, this->_age);
/// AgeChanged(this, this->_age);
/// }
///
/// Note that notify and notifyAsync do not catch exceptions, i.e. in case a delegate
@@ -171,6 +174,11 @@ public:
FastMutex::ScopedLock lock(_mutex);
_strategy.remove(aDelegate);
}
void operator () (const void* pSender, TArgs& args)
{
notify(pSender, args);
}
void notify(const void* pSender, TArgs& args)
/// Sends a notification to all registered delegates. The order is