Revert "Make memorypool threadsafe "

This commit is contained in:
Michael Tryby
2018-08-31 11:14:16 -04:00
committed by GitHub
parent 25db9cfe8f
commit d33167161a
8 changed files with 7 additions and 478 deletions

View File

@@ -21,12 +21,6 @@
#endif
#include "mempool.h"
#ifdef _MSC_VER
#define THREAD_LOCAL __declspec(thread)
#else
#define THREAD_LOCAL __thread
#endif
/*
** ALLOC_BLOCK_SIZE - adjust this size to suit your installation - it
** should be reasonably large otherwise you will be mallocing a lot.
@@ -60,7 +54,7 @@ typedef struct alloc_root_s
** root - Pointer to the current pool.
*/
THREAD_LOCAL alloc_root_t *root;
static alloc_root_t *root;
/*