Skip to content

Commit

Permalink
Merge pull request #728 from Paciente8159/727-module-event-listeners-…
Browse files Browse the repository at this point in the history
…with-locks-issue

fixed module lock flag masking
  • Loading branch information
Paciente8159 authored Aug 8, 2024
2 parents 3f1a64e + e79983f commit d1e00bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uCNC/src/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ extern "C"
#define EVENT_HANDLER_NAME(name) event_##name##_handler
#define EVENT_INVOKE(name, args) EVENT_HANDLER_NAME(name)(args)
#define CREATE_EVENT_LISTENER(name, handler) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, LISTENER_NO_LOCK, NULL}
#define CREATE_EVENT_LISTENER_WITHLOCK(name, handler, lock_flags) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, CLEARFLAG(lock_flags, LISTENER_RUNNING_LOCK), NULL}
#define CREATE_EVENT_LISTENER_WITHLOCK(name, handler, lock_flags) __attribute__((used)) name##_delegate_event_t name##_delegate_##handler = {&handler, (lock_flags & (~LISTENER_RUNNING_LOCK)), NULL}
#define ADD_EVENT_LISTENER(name, handler) \
{ \
extern name##_delegate_event_t name##_delegate_##handler; \
Expand Down

0 comments on commit d1e00bf

Please sign in to comment.