vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

refactor(samples): replace pthreads with std::thread in multithreaded sample

Open Subham-KRLX opened this issue 5 months ago • 8 comments

This PR addresses issue #13732 by refactoring the multithreaded sample to use C++11 instead of pthreads.

✅ Highlights:

  • Replaced platform-specific pthread code with std::thread
  • Improved thread safety using atomic operations
  • Updated Makefile to reflect C++11 changes
  • Validated build on macOS and ensured cross-platform compatibility

Subham-KRLX avatar Jun 27 '25 05:06 Subham-KRLX