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

From Apache OpenOffice Wiki
< Uno‎ | Binary
Jump to: navigation, search
(Moved from udk.openoffice.org)
 
m (Added category: Multi-Threading .)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
author:  [[User:Kr|Kr]] <br>
+
Type: Specification State: Evolving  Availability: URE 1.3
−
version: {{REVISIONID}} <br>
 
−
state:  draft          <br>
 
−
created: 01/10/2006    <br>
 
−
changed: 01/10/2006    <br>
 
−
type:    specification  <br>
 
  
−
== Binary UNO ==
+
The refined specification of the [[Uno/Spec/Threading-Model|abstract threading-model]] for the [[Uno/Binary|Binary Uno]] runtime.
−
=== Threading Model ===
 
  
−
;Goal: Integrate threading models into the Binary UNO runtime.
+
==Description==
 +
Support threading type specific purpose environments.
  
−
;Feature A
+
==API==
−
: Support thread model specific compilation. The following new defines select the UNO threading model for binary UNO:
+
* [[Uno/Binary/Spec/Environment Stack]]
−
* CPPU_THREAD_SAFE
+
* [[Uno/Binary/Spec/Cascaded Mapping]]
−
* CPPU_THREAD_UNSAFE
+
* [[Uno/Binary/Spec/Environment Descriptor]]
−
* CPPU_THREAD_AFFINE
+
* [[Uno/Binary/Spec/Environment Substitution]]
  
−
Services / Client code compiled with one of these defines lifes in the  
+
Threading-model specific environments are backed by the appropriate purpose environments.
−
associated environment. Not defining one of these defines, lets binary UNO fall back
+
* <code>"<OBI>"      </code> is backed by the default pure [[Uno/Term/Object Binary Interface|OBI]] environment (as usual).
−
to CPPU_THREAD_SAFE, and gives a warning. This is compatible with the original behaviour.
+
* <code>"<OBI>:unsafe"</code> is backed by the default [[Uno/Binary/Spec/Thread Unsafety Bridge]].
 +
* <code>"<OBI>:affine"</code> is backed by the default [[Uno/Binary/Spec/Thread Affinity Bridge]].
  
−
Associated environments are:
+
==Dependencies==
−
* CPPU_THREAD_SAFE  => <BU-LB>[:null]
+
* [[Uno/Binary/Spec/Environment Stack]]
−
* CPPU_THREAD_UNSAFE => <BU-LB>:mutex
+
* [[Uno/Binary/Spec/Cascaded Mapping]]
−
* CPPU_THREAD_AFFINE => <BU-LB>:thread
+
* [[Uno/Binary/Spec/Environment Descriptor]]
 +
* [[Uno/Binary/Spec/Environment Substitution]]
 +
* [[Uno/Binary/Spec/Thread Unsafety Bridge]]
 +
* [[Uno/Binary/Spec/Thread Affinity Bridge]]
  
−
(<BU-LB> stands for any binary UNO language binding (e.g. various C/C++))
 
  
−
 
+
[[Category:Spec]]
−
Purpose Environments
+
[[Category:Uno]]
−
Threading model specific environments are backed by the appropriate purpose environments.
+
[[Category:Uno:Binary]]
−
* <BU-LB>:mutex  environments are backed by the default mutex apartment
+
[[Category:Draft]]
−
* <BU-LB>[:null] environments are backed by the default free apartment
+
[[Category:Multi-Threading]]
−
* <BU-LB>:thread environments are backed by the default thread apartment
 
−
 
 
−
Feature:  
 
−
* Environment Guards
 
−
* Environment Aware References
 
−
* Environment Stacks
 
−
* Cascaded Mappings
 
−
* Purpose Environments
 
−
 
 
−
Dependencies:
 
−
* Environment Guards
 
−
* Environment Aware References
 
−
* Environment Stacks
 
−
* Cascaded Mappings
 
−
* Purpose Environments
 
−
 
 
−
Changes:
 
−
* Environment Guards
 
−
* Environment Aware References
 
−
* Environment Stacks
 
−
* Cascaded Mappings
 
−
* Purpose Environments
 
−
 
 
−
API Extensions:
 
−
* Environment Guards
 
−
* Environment Aware References
 
−
* Environment Stacks
 
−
* Cascaded Mappings
 
−
* Purpose Environments
 
−
 
 
−
Compatibility Issues:
 
−
* Environment Guards
 
−
* Environment Aware References
 
−
* Environment Stacks
 
−
* Cascaded Mappings
 
−
* Purpose Environments
 

Latest revision as of 07:07, 19 June 2007

Type: Specification State: Evolving Availability: URE 1.3

The refined specification of the abstract threading-model for the Binary Uno runtime.

Description

Support threading type specific purpose environments.

API

Threading-model specific environments are backed by the appropriate purpose environments.

Dependencies

Personal tools