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

From Apache OpenOffice Wiki
< Uno‎ | Spec
Jump to: navigation, search
(Replaced Protocol Bridge with Purpose Bridge.)
m
Line 27: Line 27:
 
; [[Uno/Spec/Environment Stack | Environment Stack]]: 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. An API for accessing the ''current'' environment is provided.
 
; [[Uno/Spec/Environment Stack | Environment Stack]]: 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. An API for accessing the ''current'' environment is provided.
 
:
 
:
; [[Uno/Spec/Cascaded Mapping|Cascaded Mapping]]: Purpose environments may be passed to the [[Uno/Spec/Runtime | Runtime]] for accessing cascaded mappings (<code>"gcc3"</code> => <code>"java:mutex:debug"</code>).
+
; [[Uno/Spec/Cascaded Mapping|Cascaded Mapping]]: Purpose environments may be passed to the [[Uno/Spec/Runtime | Runtime]] for accessing cascaded mappings (<code>"gcc3"</code> => <code>"java:unsafe:debug"</code>).
  
 
; Dependencies
 
; Dependencies
Line 38: Line 38:
 
:* [[Uno/Spec/Environment Substitution]]
 
:* [[Uno/Spec/Environment Substitution]]
  
; Compatibility Issues: None.
 
  
 
[[Category:Uno:Spec]]
 
[[Category:Uno:Spec]]

Revision as of 12:17, 16 June 2006

version: 12555
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
Purpose Environment
The different threading types are supported by using Purpose Environments.
Implementation Environment
The actual threading type can be selected in a Language Binding typical way and is backed by the appropriate Purpose Bridge. The used Purpose Bridges are the
Code may as well be declared Thread Free, so that it may be used from any other kind of code.
Environment Stack
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. An API for accessing the current environment is provided.
Cascaded Mapping
Purpose environments may be passed to the Runtime for accessing cascaded mappings ("gcc3" => "java:unsafe:debug").
Dependencies
Personal tools