aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/jemalloc/hack.cpp
blob: 39fd018eb07cd2fc20c01ddf5e5e3f5d2ef9ec42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "hack.h" 
 
#include <util/system/yield.cpp> 
#include <util/system/spinlock.cpp> 
 
#include "spinlock.h" 
 
void SPIN_L(spinlock_t* l) { 
    AcquireAdaptiveLock(l); 
} 
 
void SPIN_U(spinlock_t* l) { 
    ReleaseAdaptiveLock(l); 
}