aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/spinlock.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-05-08 23:58:24 +0300
committerthegeorg <thegeorg@yandex-team.ru>2022-05-08 23:58:24 +0300
commitf4f3e4024a1f32bd0bc3fa20239025a1b179e42d (patch)
treeb9849b312dfaed13d937b7c82ce4d0c63a18b084 /contrib/libs/jemalloc/spinlock.h
parentf6f01d5f4830e22efd8d2a5806f4ed13de4fe5b3 (diff)
downloadydb-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.h21
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