Difference between revisions of "Uno/Binary/Impl/Thread Unsafety Bridge"

From Apache OpenOffice Wiki
< Uno‎ | Binary
Jump to: navigation, search
m (Added links. updated.)
m (Changed layout. Added description.)
Line 3: Line 3:
 
type:    impl. description <br>
 
type:    impl. description <br>
  
== Thread Unsafey Bridge ==
+
==Thread Unsafey Bridge==
 +
Implementation of the [[Uno/Binary/Spec/Thread Unsafety Bridge]].
  
; Exports:
+
===Implementation===
:* [[Uno/Spec/Purpose Bridge | Purpose Bridge]]: threadunsafe_uno_uno
+
The unsafety purpose bridge for binary Uno is implemented by deriving it from the [[Uno/Cpp/Spec/Purpose_Bridge_Implementation_Helper]] and adding a MutEx as a member.
  
;Dependencies:
+
The MutEx gets
:* [[Uno/Binary/Impl/Environment Stack]]
+
* acquired when entering the environment or calling into it,
:* [[Uno/Cpp/Impl/Purpose Environment Implementation Helper]]
+
* released when leaving the environment,
 +
calling out of the environment keeps the MutEx acquired and therefor does not allow another thread to enter it meanwhile.
 +
The MutEx is a SAL MutEx and can be acquired respectively needs to be released multiple times by the same thread.
 +
 
 +
===Files===
 +
* cppu/source/MutexEnvironment/MutexEnvironment.cxx -r1.1.2.1 - -r1.1.2.2
 +
* cppu/source/MutexEnvironment/makefile.mk          -r1.1.2.1
 +
* cppu/prj/d.lst                                    -r1.15.2.5
 +
 
 +
===Dependencies===
 +
* [[Uno/Binary/Impl/Environment Stack]]
 +
* [[Uno/Cpp/Spec/Purpose_Bridge_Implementation_Helper]]
  
; Files:
 
:* cppu/source/MutexEnvironment/MutexEnvironment.cxx -r1.1.2.1 - -r1.1.2.2
 
:* cppu/source/MutexEnvironment/makefile.mk          -r1.1.2.1
 
:* cppu/prj/d.lst                                    -r1.15.2.5
 
  
 
[[Category:Uno:Binary:Impl]]
 
[[Category:Uno:Binary:Impl]]

Revision as of 12:57, 28 June 2006

version: 12881
state: UTF2
type: impl. description

Thread Unsafey Bridge

Implementation of the Uno/Binary/Spec/Thread Unsafety Bridge.

Implementation

The unsafety purpose bridge for binary Uno is implemented by deriving it from the Uno/Cpp/Spec/Purpose_Bridge_Implementation_Helper and adding a MutEx as a member.

The MutEx gets

  • acquired when entering the environment or calling into it,
  • released when leaving the environment,

calling out of the environment keeps the MutEx acquired and therefor does not allow another thread to enter it meanwhile. The MutEx is a SAL MutEx and can be acquired respectively needs to be released multiple times by the same thread.

Files

  • cppu/source/MutexEnvironment/MutexEnvironment.cxx -r1.1.2.1 - -r1.1.2.2
  • cppu/source/MutexEnvironment/makefile.mk -r1.1.2.1
  • cppu/prj/d.lst -r1.15.2.5

Dependencies

Personal tools