Difference between revisions of "Spec/Threading-Model"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (fixed links.)
m (Wording changed; typos fixed.)
Line 5: Line 5:
  
 
== The OOo Threading Model ==
 
== The OOo Threading Model ==
−
According to the [[Architecture/Threading]] goals for the OOo Threading Model, the OOo Threading Model has to support three threading types:  
+
According to the [[Architecture/Threading|goals]] for the OOo Threading Model, the OOo Threading Model has to support three threading types:  
 
* [[Uno/Term/Thread Affine | Thread Affine]]
 
* [[Uno/Term/Thread Affine | Thread Affine]]
 
* [[Uno/Term/Thread Safe | Thread Safe]]
 
* [[Uno/Term/Thread Safe | Thread Safe]]
 
* [[Uno/Term/Thread Unsafe | Thread Unsafe]]
 
* [[Uno/Term/Thread Unsafe | Thread Unsafe]]
  
−
Every of these types could be implemented with the help of libraries etc., but the most simple and elegant solution seems to be to build it into the [[Uno/Binary | Binary UNO Runtime]], ideally supporting any kind of code to declare the threading model to be used.  
+
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 [[Uno/Binary | Binary UNO Runtime]], ideally supporting the declaration of the threading model to be used.  
  
−
That would mean, that the OOo threading model is going to be the [[Uno/Spec/Threading Model | UNO Threading Model]]. This also fits with the [[Architecture/OOo as UNO Components | vision]], of OOo just being a set of UNO components.
+
This means, that the OOo threading model is going to be the [[Uno/Spec/Threading Model | UNO Threading Model]], which also fits with the [[Architecture/OOo as UNO Components | 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:  
 
The rules for UNO in respect to threading, basically repeating the threading model goals, are:  
Line 22: Line 22:
 
** [[Uno/Term/Thread Unsafe | Thread Unsafe]]
 
** [[Uno/Term/Thread Unsafe | Thread Unsafe]]
  
−
It is proposed, that the OOo Threading Model is the [[Uno/Spec/Threading Model | UNO Threading Model].
+
It is proposed, the OOo Threading Model to be the [[Uno/Spec/Threading Model | UNO Threading Model]].
  
−
[[:Spec]]
+
[[Category:Spec]]

Revision as of 09:08, 12 June 2006

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.

Personal tools