Difference between revisions of "Uno/Spec/Thread Unsafety Bridge"
From Apache OpenOffice Wiki
(Renamed bridge. Added Link.) |
m (Improved links.) |
||
Line 6: | Line 6: | ||
; Description | ; Description | ||
− | : This [[ | + | : 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 [[ | + | : A [[../Purpose Bridge|purpose bridge]] protecting [[Uno/Term/Thread Unsafe|thread unsafe]] objects: |
− | : - <code>enter</code>: Aquires the mutex of the associated [[ | + | : - <code>enter</code>: Aquires the mutex of the associated [[../Environment|Environment]]. |
− | : - <code>leave</code>: Releases the mutex of the associated [[ | + | : - <code>leave</code>: Releases the mutex of the associated [[../Environment|Environment]]. |
: | : | ||
− | : - <code>callInto</code>: Acquires the mutex of the associated [[ | + | : - <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 [[ | + | : - <code>callOut </code>: Calls the desired method, while keeping the mutex of the associated [[../Environment|Environment]] acquired. |
; Rationale: | ; Rationale: | ||
; API | ; API | ||
− | : [[ | + | : [[../Purpose Bridge|Purpose bridge]] named <code>":unsafe"</code>. |
− | + | ||
− | + | ||
; Dependencies: | ; Dependencies: | ||
− | :* [[ | + | :* [[../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