coderkalyan / coderkalyan/pubsub

irq_lock()/return/irq_unlock(key);

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Is the code below correct? After first return irq stay locked?

```
some_func()
{
int key = irq_lock();
if (...) return;
...
irq_unlock(key);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.