2
0

curl_global_cleanup.3 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. .\" You can view this file with:
  2. .\" nroff -man [file]
  3. .\" $Id$
  4. .\"
  5. .TH curl_global_cleanup 3 "17 Feb 2006" "libcurl 7.8" "libcurl Manual"
  6. .SH NAME
  7. curl_global_cleanup - global libcurl cleanup
  8. .SH SYNOPSIS
  9. .B #include <curl/curl.h>
  10. .sp
  11. .BI "void curl_global_cleanup(void);"
  12. .ad
  13. .SH DESCRIPTION
  14. This function releases resources acquired by \fBcurl_global_init(3)\fP.
  15. You should call \fIcurl_global_cleanup(3)\fP once for each call you make to
  16. \fIcurl_global_init(3)\fP, after you are done using libcurl.
  17. \fBThis function is not thread safe.\fP You must not call it when any other
  18. thread in the program (i.e. a thread sharing the same memory) is running.
  19. This doesn't just mean no other thread that is using libcurl. Because
  20. \fBcurl_global_cleanup(3)\fP calls functions of other libraries that are
  21. similarly thread unsafe, it could conflict with any other thread that uses
  22. these other libraries.
  23. See the description in \fBlibcurl(3)\fP of global environment requirements for
  24. details of how to use this function.
  25. .SH "SEE ALSO"
  26. .BR curl_global_init "(3), "
  27. .BR libcurl "(3), "