Using the thread wrapper in charon, libstrongswan and their plugins.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <utils.h>
|
||||
#include <chunk.h>
|
||||
#include <debug.h>
|
||||
#include <threading/thread.h>
|
||||
#include <utils/identification.h>
|
||||
#include <utils/host.h>
|
||||
#ifdef LEAK_DETECTIVE
|
||||
@@ -81,6 +82,9 @@ void library_deinit()
|
||||
this->detective->destroy(this->detective);
|
||||
}
|
||||
#endif /* LEAK_DETECTIVE */
|
||||
|
||||
threads_deinit();
|
||||
|
||||
free(this);
|
||||
lib = NULL;
|
||||
}
|
||||
@@ -94,6 +98,8 @@ bool library_init(char *settings)
|
||||
private_library_t *this = malloc_thing(private_library_t);
|
||||
lib = &this->public;
|
||||
|
||||
threads_init();
|
||||
|
||||
lib->leak_detective = FALSE;
|
||||
|
||||
#ifdef LEAK_DETECTIVE
|
||||
|
||||
Reference in New Issue
Block a user