mdbx: fix mdbx_rthc_remove().

This commit is contained in:
Leo Yuriev
2017-04-21 18:19:21 +03:00
parent 55226499a8
commit 8bed6a5c89
2 changed files with 20 additions and 9 deletions

View File

@@ -42,6 +42,10 @@ void mdbx_rthc_unlock(void) {
mdbx_ensure(NULL, pthread_mutex_unlock(&mdbx_rthc_mutex) == 0);
}
void __attribute__((destructor)) mdbx_global_destructor(void) {
mdbx_rthc_cleanup();
}
/*----------------------------------------------------------------------------*/
/* lck */