mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 04:02:15 +02:00
ccc17a5631
Platforms like UWP and iOS may call core methods from another threads. Since core is not thread-safe, we provide OPENVPN_ASYNC_HANDLER macro which instantiates lock guard. It follows RAII principle and locks global mutex in constructor and unlocks in destructor. This guarantees that code in block protected with this macro won't be called simultaneously from different threads. Signed-off-by: Lev Stipakov <lev@openvpn.net> |
||
---|---|---|
.. | ||
ovpncli.cpp | ||
ovpncli.hpp |