Ticket #1163 (closed defect: invalid)
Opened 2012-05-09T13:23:23-05:00
Last modified 2012-07-03T13:06:22-05:00
DynamicPlugin instances should keep a local copy of their DynamicPluginInfo
Reported by: | curtis | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | Plugin Framework | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1051 |
Description
Currently, if you try to run the same DynamicPlugin with two different inputs simultaneously, they will end up manipulating the same DynamicPluginInfo object in incompatible ways. The result is very much not thread safe.
Instead, DynamicPlugins should each work with their own copy of their DynamicPluginInfo, to avoid any conflicts.
Change History
comment:1 Changed 2012-05-14T11:22:27-05:00 by bdezonia
- Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4
comment:2 Changed 2012-05-14T11:25:48-05:00 by bdezonia
- Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta3
comment:4 Changed 2012-07-03T13:06:22-05:00 by curtis
- Status changed from new to closed
- Resolution set to invalid
I investigated this, and my initial analysis was wrong. Each DynamicPlugin instance keeps a local copy of its DynamicPluginInfo. Running the same DynamicPlugin in multiple threads simultaneously appears to work fine, in both theory and practice.