diff options
author | igor@olga.mysql.com <> | 2007-07-13 23:54:41 -0700 |
---|---|---|
committer | igor@olga.mysql.com <> | 2007-07-13 23:54:41 -0700 |
commit | bec9500ec074c0349868fc69504b71bd7fcee0fe (patch) | |
tree | c0a76d129487aff9dbad54a24ba19784475bbb4b /libmysql | |
parent | b34b8e3683e82bd29ba408ea455a46fe6f86bee8 (diff) | |
parent | b434254e0e77885039472062bf9a766481749a15 (diff) | |
download | mariadb-git-bec9500ec074c0349868fc69504b71bd7fcee0fe.tar.gz |
Merge olga.mysql.com:/home/igor/mysql-5.1-rpl
into olga.mysql.com:/home/igor/dev-opt/mysql-5.1-opt-merge
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index f994397b8fd..a05d061204b 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -168,8 +168,23 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)), } +/* + Free all memory and resources used by the client library + + NOTES + When calling this there should not be any other threads using + the library. + + To make things simpler when used with windows dll's (which calls this + function automaticly), it's safe to call this function multiple times. +*/ + + void STDCALL mysql_server_end() { + if (!mysql_client_init) + return; + #ifdef EMBEDDED_LIBRARY end_embedded_server(); #endif |