Logo Search packages:      
Sourcecode: poco version File versions

NotificationCenter & Poco::NotificationCenter::defaultCenter (  )  [static]

Returns true iff there is at least one registered observer.

Can be used to improve performance if an expensive notification shall only be created and posted if there are any observers.

Definition at line 119 of file NotificationCenter.cpp.

References Poco::SingletonHolder< S >::get().

      static SingletonHolder<NotificationCenter> sh;
      return *sh.get();

Generated by  Doxygen 1.6.0   Back to index