Difference between revisions of "Effort/Implement Basic Threading-Architecture"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Added threads list.)
(→‎Implement Basic Threading Architecture: Added mission, problem and solution statement.)
Line 2: Line 2:
  
 
==Implement Basic Threading Architecture==
 
==Implement Basic Threading Architecture==
 +
The OOo threading is going to be well defined, many little changes need to be done to get implemented what is specified as the [[Spec/Architecture/Threading|threading architecture]].
  
−
===Specification ===
+
===Problem===
−
See [[Spec/Architecture/Threading|Threading Architecture]].
+
The biggest problem is the size of the code base. It is hard to actually get an overview where thread related constructs are used. Typical usages are:
 +
* use a mutex to protect an object,
 +
* use a thread to do something in the background,
 +
* use a thread to encapsularte thread affinities (e.g. in dtrans).
 +
Some usages are more implicit:
 +
* post a user message into the VCL event queue, to delegate the execution of a particular operation into the "main" thread,
 +
* use the "global" mutex to do some initialization,
 +
* use the "Solar Mutex" to protect a particular object,
 +
* rely on VCL/Win to enter the <code>getMessage</code> loop in the main thread (DDE).
  
−
===Changes===
+
===Solution===
 +
Actually grep for thread related Uno code and change it, if needed. Change the environments of all possible components to "cpp:unsafe".
 +
 
 +
====Threads====
 +
* vos timer thread
 +
* dtrans threads (clipboard and D&D)
 +
* ucbhelper: background download thread
 +
* ICE thread
 +
* configuration flash thread
 +
* Win32: affinity thread
 +
* office acceptor thread - second process thread
 +
* uno acceptor thread
 +
* io - pump thread
 +
* package manager deployment gui thread
 +
* UNO job threads
 +
 
 +
====Components====
 +
 
 +
====Libraries====
 +
 
 +
====Applications====
 +
 
 +
===Tasks===
 
Convert the Office Components to be [[Uno/Term/Thread Unsafe|thread unsafe]]
 
Convert the Office Components to be [[Uno/Term/Thread Unsafe|thread unsafe]]
 
* [http://dba.openoffice.org/source/browse/dba/connectivity/ module dba/connectivity]:
 
* [http://dba.openoffice.org/source/browse/dba/connectivity/ module dba/connectivity]:
Line 50: Line 81:
 
** Declare exported services as "thread unsafe"
 
** Declare exported services as "thread unsafe"
  
−
===Threads===
 
−
* vos timer thread
 
−
* dtrans threads (clipboard and D&D)
 
−
* ucbhelper: background download thread
 
−
* ICE thread
 
−
* configuration flash thread
 
−
* Win32: affinity thread
 
−
* office acceptor thread - second process thread
 
−
* uno acceptor thread
 
−
* io - pump thread
 
−
* package manager deployment gui thread
 
−
* UNO job threads
 
  
 
=== Dependencies ===
 
=== Dependencies ===

Revision as of 14:08, 5 July 2006

Status: in progress

Implement Basic Threading Architecture

The OOo threading is going to be well defined, many little changes need to be done to get implemented what is specified as the threading architecture.

Problem

The biggest problem is the size of the code base. It is hard to actually get an overview where thread related constructs are used. Typical usages are:

  • use a mutex to protect an object,
  • use a thread to do something in the background,
  • use a thread to encapsularte thread affinities (e.g. in dtrans).

Some usages are more implicit:

  • post a user message into the VCL event queue, to delegate the execution of a particular operation into the "main" thread,
  • use the "global" mutex to do some initialization,
  • use the "Solar Mutex" to protect a particular object,
  • rely on VCL/Win to enter the getMessage loop in the main thread (DDE).

Solution

Actually grep for thread related Uno code and change it, if needed. Change the environments of all possible components to "cpp:unsafe".

Threads

  • vos timer thread
  • dtrans threads (clipboard and D&D)
  • ucbhelper: background download thread
  • ICE thread
  • configuration flash thread
  • Win32: affinity thread
  • office acceptor thread - second process thread
  • uno acceptor thread
  • io - pump thread
  • package manager deployment gui thread
  • UNO job threads

Components

Libraries

Applications

Tasks

Convert the Office Components to be thread unsafe


Dependencies

Personal tools