Difference between revisions of "Uno/Spec/Thread Unsafety Bridge"

From Apache OpenOffice Wiki
< Uno‎ | Spec
Jump to: navigation, search
(Renamed bridge. Added Link.)
m (Improved links.)
Line 6: Line 6:
  
 
; Description
 
; Description
: This [[Uno/Spec/Bridge|Bridge]] protects [[Uno/Spec/Thread Unsafe|Thread Unsafe]] objects from being called by multi threads simultaneously. It does this by acquring a dedicated mutex before actually doing the call.
+
: This [[../Bridge|bridge]] protects [[Uno/Term/Thread Unsafe|thread unsafe]] objects from being called by multi threads simultaneously. It does this by acquring a dedicated mutex before actually doing the call.
  
 
; Feature:  
 
; Feature:  
: A [[Uno/Spec/Protocol Bridge|Protocol Bridge]] protecting [[Uno/Spec/Thread Unsafe|Thread Unsafe]] objects:
+
: A [[../Purpose Bridge|purpose bridge]] protecting [[Uno/Term/Thread Unsafe|thread unsafe]] objects:
: - <code>enter</code>: Aquires the mutex of the associated [[Uno/Spec/Environment|Environment]].
+
: - <code>enter</code>: Aquires the mutex of the associated [[../Environment|Environment]].
: - <code>leave</code>: Releases the mutex of the associated [[Uno/Spec/Environment|Environment]].
+
: - <code>leave</code>: Releases the mutex of the associated [[../Environment|Environment]].
 
:
 
:
: - <code>callInto</code>: Acquires the mutex of the associated [[Uno/Spec/Environment|Environment]] and calls the desired method.
+
: - <code>callInto</code>: Acquires the mutex of the associated [[../Environment|Environment]] and calls the desired method.
: - <code>callOut </code>: Calls the desired method, while keeping the mutex of the associated [[Uno/Spec/Environment|Environment]] acquired.
+
: - <code>callOut </code>: Calls the desired method, while keeping the mutex of the associated [[../Environment|Environment]] acquired.
  
 
; Rationale:  
 
; Rationale:  
  
 
; API
 
; API
: [[Uno/Spec/Protocol Bridge|Protocol Bridge]] named <code>"threadunsafe"</code>.
+
: [[../Purpose Bridge|Purpose bridge]] named <code>":unsafe"</code>.
 
+
; Compatibility Issues: None.
+
  
 
; Dependencies:
 
; Dependencies:
:* [[Uno/Spec/Environment Stack]]
+
:* [[../Environment Stack]]
 +
 
  
 
[[Category:Uno:Spec]]
 
[[Category:Uno:Spec]]

Revision as of 15:30, 16 June 2006

version: 12569
state: draft
type: specification

Thread Unsafety Bridge

Description
This bridge protects thread unsafe objects from being called by multi threads simultaneously. It does this by acquring a dedicated mutex before actually doing the call.
Feature
A purpose bridge protecting thread unsafe objects:
- enter: Aquires the mutex of the associated Environment.
- leave: Releases the mutex of the associated Environment.
- callInto: Acquires the mutex of the associated Environment and calls the desired method.
- callOut : Calls the desired method, while keeping the mutex of the associated Environment acquired.
Rationale
API
Purpose bridge named ":unsafe".
Dependencies
Personal tools