MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / curl_global

Class curl_global

include/curl_global.h:37–62  ·  view source on GitHub ↗

* This class provides global initialization of curl so that use of all curl * interfaces is thread safe. */

Source from the content-addressed store, hash-verified

35 * interfaces is thread safe.
36 */
37 class curl_global {
38 public:
39 /**
40 * The default constructor will initialize the curl
41 * environment with the default flag.
42 */
43 curl_global();
44 /**
45 * Overloaded constructor that initializes curl environment
46 * with user specified flag.
47 */
48 explicit curl_global(long);
49
50 /**
51 * Copying disabled to follow RAII idiom.
52 */
53 curl_global(const curl_global&) = delete;
54 curl_global& operator=(const curl_global&) = delete;
55
56 /**
57 * The virtual destructor will provide an easy and clean
58 * way to deallocate resources, closing curl environment
59 * correctly.
60 */
61 virtual ~curl_global();
62 };
63}
64
65#endif /* defined(CURLCPP_CURL_GLOBAL_H) */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected