diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-05-08 23:58:24 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-05-08 23:58:24 +0300 |
commit | f4f3e4024a1f32bd0bc3fa20239025a1b179e42d (patch) | |
tree | b9849b312dfaed13d937b7c82ce4d0c63a18b084 /contrib/libs/jemalloc/spinlock.h | |
parent | f6f01d5f4830e22efd8d2a5806f4ed13de4fe5b3 (diff) | |
download | ydb-f4f3e4024a1f32bd0bc3fa20239025a1b179e42d.tar.gz |
jemalloc: For the further improvement of patching
ref:6883a616f4e2679f806b9b9e1d0f9fa693ab7467
Diffstat (limited to 'contrib/libs/jemalloc/spinlock.h')
-rw-r--r-- | contrib/libs/jemalloc/spinlock.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/contrib/libs/jemalloc/spinlock.h b/contrib/libs/jemalloc/spinlock.h deleted file mode 100644 index 93fcf10e12a..00000000000 --- a/contrib/libs/jemalloc/spinlock.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include <util/system/defaults.h> - -typedef volatile intptr_t spinlock_t; - -#define SPIN_L AllocAcquireAdaptiveLock -#define SPIN_U AllocReleaseAdaptiveLock - -#define _SPINLOCK_INITIALIZER 0 -#define _SPINUNLOCK(_lck) SPIN_U(_lck) -#define _SPINLOCK(_lck) SPIN_L(_lck) - -#if defined(__cplusplus) -extern "C" { -#endif - void SPIN_L(spinlock_t* lock); - void SPIN_U(spinlock_t* lock); -#if defined(__cplusplus) -}; -#endif |