MySQL 8.0.40
Source Code Documentation
|
Helper class to dispose of the rwlocks at DLL/so unload. More...
Public Member Functions | |
vtoken_lock_cleanup ()=default | |
~vtoken_lock_cleanup () | |
void | activate () |
bool | is_active () |
Private Attributes | |
atomic_boolean | activated |
Helper class to dispose of the rwlocks at DLL/so unload.
We can't release the rwlock at plugin or UDF unload since we're using it to synchronize both.
So we need to rely on the shared object deinitialization function to dispose of lock up.
For that we declare a helper class with a destructor that disposes of the global object and declare one global variable cleanup_lock of that class and expect the C library to call the destructor when unloading the DLL/so.
|
default |
|
inline |
|
inline |
|
inline |
|
private |