]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/docs/api/mg_exit_library.md
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / civetweb / docs / api / mg_exit_library.md
1 # Civetweb API Reference
2
3 ### `mg_exit_library( );`
4
5 ### Parameters
6
7 none
8
9 ### Return Value
10
11 | Type | Description |
12 | :--- | :--- |
13 |`unsigned`| **0** is returned or error |
14
15 ### Description
16
17 The function `mg_exit_library()` should be called from an application program, when the library should be unloaded.
18 It must be called only from one thread (it is not guaranteed to be thread safe).
19
20 Only use `mg_exit_library( );` when you used [`mg_init_library( feature );`](api/mg_init_library.md) before.
21
22 The library init and exit functions are new in version 1.9 (as dummy implementation) and effective only from version 1.10.
23 For compatibility reasons, other functions (such as [`mg_start();`](mg_start.md)) will initialize the required features as well,
24 but they will no longer do a de-initialization, leaving a memory leak when the library is unloaded.
25
26 ### See Also
27
28 * [`mg_init_library( feature );`](mg_init_library.md)
29 * [`mg_check_feature( feature );`](mg_check_feature.md)