<p>please keep race conditions in mind.</p>
<pre><code>...
config[int_num].cb = cb;
// GPIO TRIGGERS, new cb gets executed with old arg
config[int_num].arg = arg;
...
</code></pre>
<p>Guard with irq_disable/restore, or add a note that this should be done externally?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12082?email_source=notifications&email_token=ABE7WYBD7WCDIXNU2XM3IQDQKC52RA5CNFSM4IPPPQ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD64G7VY#issuecomment-532180951">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHIHL7VZVBDRES2GODQKC52RANCNFSM4IPPPQ2A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYASXAKX4GWUWVVNJ53QKC52RA5CNFSM4IPPPQ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD64G7VY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12082?email_source=notifications\u0026email_token=ABE7WYBD7WCDIXNU2XM3IQDQKC52RA5CNFSM4IPPPQ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD64G7VY#issuecomment-532180951",
"url": "https://github.com/RIOT-OS/RIOT/pull/12082?email_source=notifications\u0026email_token=ABE7WYBD7WCDIXNU2XM3IQDQKC52RA5CNFSM4IPPPQ2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD64G7VY#issuecomment-532180951",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>