Share via

Is SetPixel() thread safe?

Anonymous
2024-03-09T05:11:08+00:00

Hi. I am writing a graphics application with VS 2022 Community Edition. It works, but it takes 7 seconds to render the image on the screen. I would like to break the work up into slices and have multiple worker threads do the work. Question: Is SetPixel() thread safe? If not, can I serialize SetPixel() with a mutex? Thank you.

Windows for home | Windows 11 | Display and graphics

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-03-09T07:56:44+00:00

    Hi, I am Dave, I will help you with this.

    I apologize, Community is just a consumer forum, due to the scope of your question (C++ Dev) can you please post this question to our sister forum on Microsoft Q&A (The Developers Forum) in the C++ section (linked below)

    Over there you will have access to a host of Developers and C++ Programming experts and will get a knowledgeable and quick answer to this question.

    https://learn.microsoft.com/en-us/answers/tags/...

    Was this answer helpful?

    0 comments No comments