feat remove thread check
Some checks failed
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m43s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m1s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m10s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m16s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 3m6s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 3h14m16s
Some checks failed
linux-arm-gcc / linux-gcc-armhf (push) Successful in 1m43s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m1s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m10s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m16s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 3m6s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Failing after 3h14m16s
This commit is contained in:
parent
11c5cd64fe
commit
ec2263538d
@ -27,28 +27,28 @@ sled::scoped_refptr<PendingTaskSafetyFlag>
|
||||
PendingTaskSafetyFlag::CreateDetachedInactive()
|
||||
{
|
||||
scoped_refptr<PendingTaskSafetyFlag> safety_flag = CreateInternal(false);
|
||||
safety_flag->main_sequence_.Detach();
|
||||
// safety_flag->main_sequence_.Detach();
|
||||
return safety_flag;
|
||||
}
|
||||
|
||||
void
|
||||
PendingTaskSafetyFlag::SetNotAlive()
|
||||
{
|
||||
SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
// SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
alive_ = false;
|
||||
}
|
||||
|
||||
void
|
||||
PendingTaskSafetyFlag::SetAlive()
|
||||
{
|
||||
SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
// SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
alive_ = true;
|
||||
}
|
||||
|
||||
bool
|
||||
PendingTaskSafetyFlag::alive() const
|
||||
{
|
||||
SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
// SLED_DCHECK_RUN_ON(&main_sequence_);
|
||||
return alive_;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ protected:
|
||||
|
||||
private:
|
||||
static sled::scoped_refptr<PendingTaskSafetyFlag> CreateInternal(bool alive);
|
||||
bool alive_ = true;
|
||||
std::atomic<bool> alive_{true};
|
||||
SequenceChecker main_sequence_;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user