#include <restincurl.h>

Static Public Member Functions | |
| static void | tlsLOckInit () |
| static void | tlsLockKill () |
Static Private Member Functions | |
| static void | lock () |
| static void | unlock () |
Static Private Attributes | |
| static std::mutex | mutex_ |
Thread support for the TLS layer used by libcurl.
Some TLS libraries require that you supply callback functions to deal with thread synchronization.
See https://curl.haxx.se/libcurl/c/threadsafe.html
You can deal with this yourself, or in the case that RESTinCurl support your TLS library, you can use this class.
Currently supported libraries:
RESTINCURL_WITH_OPENSSL_THREADSThe class is written so that you can use it in your code, and it will only do something when the appropriate define is set.
This class is only available when RESTINCURL_ENABLE_ASYNC is nonzero.
Definition at line 688 of file restincurl.h.
|
inlinestaticprivate |
Definition at line 733 of file restincurl.h.
|
inlinestatic |
Enable the built-in support.
Definition at line 719 of file restincurl.h.
|
inlinestatic |
Free up resources used when finished using TLS.
Definition at line 724 of file restincurl.h.
|
inlinestaticprivate |
Definition at line 737 of file restincurl.h.
|
staticprivate |
Definition at line 741 of file restincurl.h.