std::thread

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
enkubat
Jr. Member
Jr. Member
Posts: 2
Joined: 04 Apr 2023, 11:56

std::thread

Post by enkubat »

Hello,

I am a beginner with this C++ SDK and have a basic question: Is it ok to create SDK objects and call SDK methods from std::thread or it is necessary to use UaThread from thread pool?

Best regards,
Ela

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: std::thread

Post by Support Team »

Hello Ela,

you can use std::thread() as long as you don't confuse it with UaThread methods. By the way, UaThread is not a ThreadPool implementation. It is only a platform layer abstraction for a single thread.
Best regards
Unified Automation Support Team

Post Reply