Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions LinguaFrancaBase/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ def check_deadline(self, invoke_deadline_handler=True):
# This idiom is used to invoke C functions bound to the main module and defined
# pythontarget.c.
return self.lf_module().check_deadline(self, invoke_deadline_handler)
def update_deadline(self, updated_deadline=0):
"""
Update the deadline of the currently executing reaction.

Args:
invoke_deadline_handler (interval_t): The updated deadline.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
invoke_deadline_handler (interval_t): The updated deadline.
updated_deadline (interval_t): The updated deadline.

"""
# Call the C function through the binding.
# This idiom is used to invoke C functions bound to the main module and defined
# pythontarget.c.
return self.lf_module().update_deadline(self, updated_deadline)