• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 15-Day Money-Back Guarantee

C++ Equivalent to VB 'SyncLock'

VB C++ (C++17)
SyncLock x
    ...
End SyncLock
#include <mutex>

...

{
    std::scoped_lock<std::mutex> lock(x);
    ......
}


Use VB to C++ Converter to convert from VB to C++.     

Additional resource: VB.NET and C++ Equivalents


Copyright © 2004 – 2019 Tangible Software Solutions, Inc.