fooo
This commit is contained in:
@@ -24,9 +24,11 @@ Vault::Vault() {
|
||||
Guarded::~Guarded() { Guard::leave(); }
|
||||
|
||||
Guarded Guard::enter() {
|
||||
bool status = Core::Interrupt::disable();
|
||||
epi_flag FOR_CURRENT_CORE = true;
|
||||
//Core::Interrupt::enable();
|
||||
Core::Interrupt::restore(status);
|
||||
global_lock.lock();
|
||||
|
||||
return Guarded(global_vault);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ struct Vault {
|
||||
// no copy
|
||||
Vault(const Vault&) = delete;
|
||||
Vault& operator=(const Vault&) = delete;
|
||||
uint8_t counter;
|
||||
};
|
||||
|
||||
/*! \brief Lock guard that provides access to the epilogue \ref Vault
|
||||
|
||||
Reference in New Issue
Block a user