mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
Merge branch 'testnet' into accelerator
This commit is contained in:
commit
ea0d2808b8
4 changed files with 12 additions and 0 deletions
|
@ -63,7 +63,10 @@ class SpinLock {
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-pragma"
|
||||||
std::atomic_flag flag_ = ATOMIC_FLAG_INIT;
|
std::atomic_flag flag_ = ATOMIC_FLAG_INIT;
|
||||||
|
#pragma clang diagnostic pop
|
||||||
void unlock() {
|
void unlock() {
|
||||||
flag_.clear(std::memory_order_release);
|
flag_.clear(std::memory_order_release);
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,10 @@ void TsCerr::enterCritical() {
|
||||||
void TsCerr::exitCritical() {
|
void TsCerr::exitCritical() {
|
||||||
lock_.clear(std::memory_order_release);
|
lock_.clear(std::memory_order_release);
|
||||||
}
|
}
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-pragma"
|
||||||
TsCerr::Lock TsCerr::lock_ = ATOMIC_FLAG_INIT;
|
TsCerr::Lock TsCerr::lock_ = ATOMIC_FLAG_INIT;
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
class DefaultLog : public LogInterface {
|
class DefaultLog : public LogInterface {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -343,7 +343,10 @@ class TsLog : public LogInterface {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
LogInterface *log_ = nullptr;
|
LogInterface *log_ = nullptr;
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-pragma"
|
||||||
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
|
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
|
||||||
|
#pragma clang diagnostic pop
|
||||||
void enter_critical() {
|
void enter_critical() {
|
||||||
while (lock_.test_and_set(std::memory_order_acquire)) {
|
while (lock_.test_and_set(std::memory_order_acquire)) {
|
||||||
// spin
|
// spin
|
||||||
|
|
|
@ -149,7 +149,10 @@ class PollableFdInfo : private ListNode {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NativeFd fd_{};
|
NativeFd fd_{};
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-pragma"
|
||||||
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
|
std::atomic_flag lock_ = ATOMIC_FLAG_INIT;
|
||||||
|
#pragma clang diagnostic pop
|
||||||
PollFlagsSet flags_;
|
PollFlagsSet flags_;
|
||||||
#if TD_PORT_WINDOWS
|
#if TD_PORT_WINDOWS
|
||||||
SpinLock observer_lock_;
|
SpinLock observer_lock_;
|
||||||
|
|
Loading…
Reference in a new issue