Difference between revisions of "Uno/Spec/Threading-Model"

From Apache OpenOffice Wiki
< Uno‎ | Spec
Jump to: navigation, search
(The generic UNO threading model.)
(Added dependencies.)
Line 2: Line 2:
 
state:  draft          <br>
 
state:  draft          <br>
 
type:    specification  <br>
 
type:    specification  <br>
−
 
  
 
== UNO Threading Model ==
 
== UNO Threading Model ==
Line 12: Line 11:
 
:* [[Uno/Spec/Thread Affine | Thread Affine]]
 
:* [[Uno/Spec/Thread Affine | Thread Affine]]
 
: Code.
 
: Code.
−
 
+
:
 
: The threading type of any code can be specified appropriately. The [[Uno/Spec/Thread Unsafe | Thread Unsafe]] type is the default type for any implementation.  
 
: The threading type of any code can be specified appropriately. The [[Uno/Spec/Thread Unsafe | Thread Unsafe]] type is the default type for any implementation.  
  
Line 32: Line 31:
  
 
; Dependencies
 
; Dependencies
−
: [[Uno/Spec/Thread Affine Environment]]
+
:* [[Uno/Spec/Thread Affinity Bridge]]
−
: [[Uno/Spec/Thread Unsafe Environment]]
+
:* [[Uno/Spec/Thread Unsafety Bridge]]
−
: [[Uno/Spec/Purpose Environment]]
+
:* [[Uno/Spec/Purpose Environment]]
 +
:* [[Uno/Spec/Environment Stack]]
 +
:* [[Uno/Spec/Implementation Environment]]
 +
:* [[Uno/Spec/Cascaded Mapping]]
 +
:* [[Uno/Spec/Purpose Environment]]
 +
:* [[Uno/Spec/Environment Substitution]]
  
 
; Compatibility Issues: None.
 
; Compatibility Issues: None.
  
 
[[Category:Uno:Spec]]
 
[[Category:Uno:Spec]]

Revision as of 15:18, 18 April 2006

version: 8209
state: draft
type: specification

UNO Threading Model

Feature
The UNO Runtime provides support for implementing
Code.
The threading type of any code can be specified appropriately. The Thread Unsafe type is the default type for any implementation.
Rationale
API
The different threading models are accessible as Purpose Environments.
The predefined purposes for objects are defined according to their threading type,
Stacked Environments: The current (purpose) environment does not only vary with the implementation language (e.g. Java or C++), but also with the executed codes declared threading type. Therefor an API for accessing the current environment is provided.
Purpose environments may be passed to the Runtime for accessing cascaded mappings ("gcc3" => "java:mutex:debug").
Implementation Environments: Client code as well as service code may be declared once, to either be thread safe, thread affine or thread unsafe.
Dependencies
Compatibility Issues
None.
Personal tools