Uno/Spec/Thread Unsafety Bridge

From Apache OpenOffice Wiki
< Uno‎ | Spec
Revision as of 14:55, 18 April 2006 by Kr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

version: 8203
state: draft
type: specification

Thread Unsafe 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 Protocol 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
Protocol Bridge named "unsafe".
Compatibility Issues
None.
Dependencies
  • EnvStack
Personal tools