Ticket #72 (closed defect: fixed)
Change COMBIA threading model for COM registrations
Reported by: | jasper | Owned by: | jasper |
---|---|---|---|
Priority: | major | Milestone: | Maintenance of Phase II |
Component: | Registrar | Version: | 1.2.0.7 |
Keywords: | Cc: |
Description
COBIA based PMCs are made available to COM via COMBIA, which is currently done with the "Apartment" threading model, much along the line of most COM based CAPE-OPEN components. This threading model is more restrictive than it needs to be. The details of the COBIA threading model will be further refined in COBIA phase III, but the general concept is that it is ok for the PME to use the PMC from any thread, as long as it is not done concurrently. PMCs that do not support this threading model have the option to register as 'restricted threaded' which implies that the PME can access the PMC only from the thread in which it was created.
The COMBIA based COM registration for COBIA based PMC components is to be changed accordingly: if a PMC identifies itself as restricted threaded, the COMBIA threading model will be "Apartment". Otherwise it will be "Both" which closer agrees with the default COBIA threading model.