[PATCH v3 0/9] MR272: d3dx10: Add D3DX10CreateThreadPump implementation.

Josh Simmons (@jsimmons) wine at gitlab.winehq.org
Wed Jun 22 13:22:04 CDT 2022


Josh Simmons (@jsimmons) commented about dlls/d3dx10_43/d3dx10_43_main.c:
> +    ID3DX10ThreadPump ID3DX10ThreadPump_iface;
> +    LONG refcount;
> +
> +    LONG processing_count;
> +
> +    SRWLOCK io_lock;
> +    UINT io_count;
> +    struct list io_queue;
> +
> +    SRWLOCK proc_lock;
> +    UINT proc_count;
> +    struct list proc_queue;
> +
> +    SRWLOCK device_lock;
> +    UINT device_count;
> +    struct list device_queue;
Unsolicited nit, but since these are separately locked queues they should probably be padded out to be on their own cache lines to avoid false sharing.

(No idea whether this API is hot enough for that to be truly important, though)

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/272#note_2513



More information about the wine-devel mailing list