Lock Optimization RFC

This commit is contained in:
Per Lindgren 2019-09-28 21:32:48 +02:00
parent 38306389ea
commit e8d94cd842
6 changed files with 764 additions and 49 deletions

View file

@ -64,15 +64,11 @@ pub fn codegen(
#cfg_core
unsafe fn #symbol() {
const PRIORITY: u8 = #priority;
#let_instant
rtfm::export::run(PRIORITY, || {
crate::#name(
#locals_new
#name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant)
)
});
crate::#name(
#locals_new
#name::Context::new(&rtfm::export::Priority::new(PRIORITY) #instant)
);
}
));