- added logging when destroying

This commit is contained in:
Jan Hutter committed 2005-11-22 11:51:22 +00:00
1 parent ca03b73be9
commit ffc5fd73e5
1 file changed
+3 -1
+3 -1
View File
@@ -95,10 +95,12 @@ static void receiver_thread_function(private_receiver_t * this)
*/
static status_t destroy(private_receiver_t *this)
{
this->logger->log(this->logger, CONTROL | MORE, "Going to terminate receiver thread");
pthread_cancel(this->assigned_thread);
pthread_join(this->assigned_thread, NULL);
this->logger->log(this->logger, CONTROL | MORE, "Receiver thread terminated");
global_logger_manager->destroy_logger(global_logger_manager, this->logger);
allocator_free(this);