- added logging when destroying

This commit is contained in:
Jan Hutter
2005-11-22 11:52:40 +00:00
parent ffc5fd73e5
commit 9326235ba1
+2
View File
@@ -82,9 +82,11 @@ static void scheduler_thread_function(private_scheduler_t * this)
*/ */
static status_t destroy(private_scheduler_t *this) static status_t destroy(private_scheduler_t *this)
{ {
this->logger->log(this->logger, CONTROL | MORE, "Going to terminate scheduler thread");
pthread_cancel(this->assigned_thread); pthread_cancel(this->assigned_thread);
pthread_join(this->assigned_thread, NULL); pthread_join(this->assigned_thread, NULL);
this->logger->log(this->logger, CONTROL | MORE, "Scheduler thread terminated");
global_logger_manager->destroy_logger(global_logger_manager, this->logger); global_logger_manager->destroy_logger(global_logger_manager, this->logger);