24 #include <aspect/inifins/aspect_provider.h> 25 #include <aspect/aspect_provider.h> 26 #include <aspect/manager.h> 47 __aspect_manager = manager;
57 if (provider_thread == NULL) {
59 "AspectProviderAspect, but RTTI says it " 60 "has not. ", thread->
name());
63 const std::list<AspectIniFin *> &aspects =
65 std::list<AspectIniFin *>::const_iterator a;
66 for (a = aspects.begin(); a != aspects.end(); ++a) {
78 if (p_thr == NULL)
return true;
81 std::list<AspectIniFin *>::const_iterator a;
82 for (a = aspects.begin(); a != aspects.end(); ++a) {
98 if (provider_thread == NULL) {
100 "AspectProviderAspect, but RTTI says it " 101 "has not. ", thread->
name());
104 const std::list<AspectIniFin *> &aspects =
106 std::list<AspectIniFin *>::const_iterator a;
107 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.