24 #include <aspect/aspect_provider.h> 25 #include <aspect/inifins/aspect_provider.h> 26 #include <aspect/manager.h> 44 aspect_manager_ = manager;
51 provider_thread = dynamic_cast<AspectProviderAspect *>(thread);
53 if (provider_thread == NULL) {
55 "AspectProviderAspect, but RTTI says it " 61 std::list<AspectIniFin *>::const_iterator a;
62 for (a = aspects.begin(); a != aspects.end(); ++a) {
71 p_thr = dynamic_cast<AspectProviderAspect *>(thread);
77 std::list<AspectIniFin *>::const_iterator a;
78 for (a = aspects.begin(); a != aspects.end(); ++a) {
91 provider_thread = dynamic_cast<AspectProviderAspect *>(thread);
93 if (provider_thread == NULL) {
95 "AspectProviderAspect, but RTTI says it " 101 std::list<AspectIniFin *>::const_iterator a;
102 for (a = aspects.begin(); a != aspects.end(); ++a) {
AspectProviderAspectIniFin(AspectManager *manager)
Constructor.
Fawkes library namespace.
virtual void finalize(Thread *thread)
Finalize thread.
Thread class encapsulation of pthreads.
void register_inifin(AspectIniFin *inifin)
Register initializer/finalizer.
void unregister_inifin(AspectIniFin *inifin)
Unregister initializer/finalizer.
Thread cannot be initialized.
virtual void init(Thread *thread)
Initialize thread.
Aspect and aspect initializer/finalizer manager.
const char * name() const
Get name of thread.
const std::list< AspectIniFin * > & aspect_provider_aspects() const
Get name of the provided aspect.
bool has_threads_for_aspect(const char *aspect_name)
Check if threads for a particular aspect still exist.
Thread aspect provide a new aspect.
Thread cannot be finalized.
virtual bool prepare_finalize(Thread *thread)
Default finalize preparation.
Aspect initializer/finalizer base class.