August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)

Project Task Page: Axon ThreadedComponent termination bugfix

Status: Completed
Current Developers: MH, MPS
Current "inflight" dev location: /branches/private_MH_20070522_threadedcomponent_bugfixes
Start Date: 22 May 2007
End Date: 5 Aug 2007
Date this page last updated: 5 Aug 2007
Estimated effort so far: 1 day


Description


Casual inspection of Axon.ThreadedComponent identified a bug:threadedcomponent may never properly terminate if, when the thread (main() method) terminates, one of the inqueues in full and there are still messages waiting at the corresponding inbox.

This branch adds test suite coverage of this issues and fixes the bug.

Inputs

This section is largely about WHO has influenced this task to do WHAT, and where possible WHY. It is also about WHO to contact with regard to this task to influence what's going on.

Task Sponsor: MH

Task Owner: MH

Developers involved: MH (development)

Users: MH, Patrick`

Interested third parties: MH, Patrick`

Requirements

Outputs

Expected

Actual

Code:

SVN branch: private_MH_20070522_threadedcomponent_bugfixes

Mainline code: /Code/Python/Axon/Axon/

Mainline code: /Tests/Python/Axon/

Realistic possibilities arising as a result of activity on this task

none

Tasks that directly enable this task (dependencies)

Sub Tasks

Task Log

Discussion

To my mind this could be deemed a bugfix. It is certainly not really a tangible API or feature-set change.

I've added to the docstrings to provide clarification around shutdown behaviour to people writing threaded components. Its basically documenting the situation as-is, rather than being a change in behaviour (aside from the bugfix aspect!)

-- Matt Hammond, 23 May 2007