Uno/Spec/Thread Unsafety Bridge

From Apache OpenOffice Wiki
< Uno‎ | Spec
Revision as of 15:30, 16 June 2006 by Kr (Talk | contribs)

Jump to: navigation, search

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