You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Shared event example: deferring from interrupt context
33
+
34
+
Like the previous example, this defers from interrupt to an event queue thread. However, rather than creating its own thread, it uses the shared event queue – potentially sharing it with other system components and saving RAM.
35
+
36
+
As the event queue is shared, you should limit the execution time of your event functions to avoid delaying other users’ events excessively.
### Shared event example: deferring from interrupt context
45
-
46
-
Like the previous example, this defers from interrupt to an event queue thread. However, rather than creating its own thread, it uses the shared event queue – potentially sharing it with other system components and saving RAM.
47
-
48
-
As the event queue is shared, you should limit the execution time of your event functions to avoid delaying other users’ events excessively.
### Shared event example: running the shared queue from main
53
53
54
54
To further save RAM, if you have no other work to do in your main function after initialization, you can dispatch the global event queue from there, avoiding the need to create a separate dispatch thread.
0 commit comments