API referenceRendering & Viewer

rasSetThreadPriority

Store the cache's update/render background-thread

C
void __stdcall rasSetThreadPriority(IPGC CachePtr, TPDFThreadPriority UpdateThread, TPDFThreadPriority RenderThread);
void __stdcall rasSetWindowHandle(IPGC CachePtr, HWND hWnd);
Delphi
procedure rasSetThreadPriority(CachePtr: IPGC; UpdateThread, RenderThread: TPDFThreadPriority); stdcall;
procedure rasSetWindowHandle(CachePtr: IPGC; hWnd: HWND); stdcall;

Purpose. Store the cache's update/render background-thread priorities, and the host window handle used for invalidation/repaint signaling.

Description. Both are plain field stores (UpdPriority/ RndPriority; WndHandle). This chapter did not trace whether the stored thread priorities are ever actually applied to a real OS thread (vs. remaining descriptive cache state alongside the many other "retained but not independently verified as consumed" fields documented across this SDK) — treat as confirmed-stored, not confirmed-effective, pending a deeper trace of the tile-render worker (Rendering, Painting, and the Tile Pipeline).

Parameters.

ParameterDescription
CachePtrTarget page cache.
UpdateThread, RenderThreadStored priority ordinals.
hWndStored window handle.

Return value. None.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern void rasSetThreadPriority(IntPtr CachePtr, TPDFThreadPriority UpdateThread, TPDFThreadPriority RenderThread);
Area
Rendering & Viewer
Category

Rasterizer/Rendering

Exported names

rasSetThreadPriority

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.