Spec/Threading-Model
From Apache OpenOffice Wiki
Type: proposal
Status: draft
Author: Kai Sommerfeld, Kay Ramme
The OOo Threading Model
According to the goals for the OOo Threading Model, the OOo Threading Model has to support three threading types:
Every of these types could be implemented with the help of libraries etc., the most simple and elegant solution seems to be the extension of the Binary UNO Runtime, ideally supporting the declaration of the threading model to be used.
This means, that the OOo threading model is going to be the UNO Threading Model, which also fits with the vision, of OOo just being a set of UNO components.
The rules for UNO in respect to threading, basically repeating the threading model goals, are:
- UNO APIs have to be implemented thread safe
- UNO APIs have to be implemented thread transparent
- Code has to be implemented following one of three threading approaches (addressing (d),(f)):
It is proposed, the OOo Threading Model to be the UNO Threading Model.