Difference between revisions of "Effort/Encapsulate the Win32 thread affinity"
From Apache OpenOffice Wiki
< Effort
m |
m (Fixed section indention, some wording, added links.) |
||
| Line 1: | Line 1: | ||
| − | [[ | + | [[KR|Kay Ramme]], [mailto:Kai.Sommerfeld@sun.com] |
| − | Status: in progress (UTF2) | + | Type: Effort<br> |
| + | Status: in progress (UTF2)<br> | ||
| − | == | + | ==Problem== |
| + | The Win32 [[Uno/Term/Thread Affine|thread affinity]] of the window create and managing functions is inherited by VCL for Windows. This results in code to need explicitly taking care of this, e.g. by delegating function invokations into the "main" thread. | ||
| − | + | ==Solution== | |
| − | |||
| − | |||
| − | |||
Use a private thread for window creation an message handling. Delegate all calls leading to the invokation of these functions into the private thread. Use the [[Uno/Effort/Creating the Uno Threading Framework|Uno Threading Framework]] to simplify the implementation. | Use a private thread for window creation an message handling. Delegate all calls leading to the invokation of these functions into the private thread. Use the [[Uno/Effort/Creating the Uno Threading Framework|Uno Threading Framework]] to simplify the implementation. | ||
| − | + | ==Time Frame== | |
| − | + | ==Tasks== | |
| − | + | {|border="1" cellspacing="0" class="wikitable" | |
|- style="background:#efefef;" | |- style="background:#efefef;" | ||
| Title || State | | Title || State | ||
Revision as of 15:32, 4 September 2006
Type: Effort
Status: in progress (UTF2)
Problem
The Win32 thread affinity of the window create and managing functions is inherited by VCL for Windows. This results in code to need explicitly taking care of this, e.g. by delegating function invokations into the "main" thread.
Solution
Use a private thread for window creation an message handling. Delegate all calls leading to the invokation of these functions into the private thread. Use the Uno Threading Framework to simplify the implementation.
Time Frame
Tasks
| Title | State |
| Implement wrappers for VCL window related Win32 backend | 90% |