|
cwist
Modern C web framework with libttak runtime
|

Go to the source code of this file.
Functions | |
| void | cwist_curl_global_acquire (void) |
| Acquire a reference on the global libcurl instance. | |
| void | cwist_curl_global_release (void) |
| Release a reference on the global libcurl instance. | |
Acquire a reference on the global libcurl instance.
Initializes libcurl via curl_global_init() on the first acquisition (reference count transitions from 0 to 1). Thread-safe; subsequent calls only increment the reference count. Each call must be paired with exactly one cwist_curl_global_release().
Definition at line 19 of file curl_global.c.
References cap.
Referenced by cwist_http_client_create().
Release a reference on the global libcurl instance.
Decrements the reference count and calls curl_global_cleanup() when the last reference is dropped. Thread-safe. Calls made without a matching cwist_curl_global_acquire() are ignored (the reference count never goes below zero).
Definition at line 36 of file curl_global.c.
References cap.
Referenced by cwist_http_client_create(), and cwist_http_client_destroy().