Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sigtimedwait & sigwaitinfo implemented #243

Merged
merged 40 commits into from
Jan 19, 2025

Conversation

migthymax
Copy link
Member

  • refactored access to timer.device
  • using sempahore instead of timer_busy
  • calling reading/getter functions is made via the structures setup in constructors
  • calling setters open each there own timer.device to be lock free
  • sigwait is now implemented using sigwaitinfo
  • sigwaitinfo is implemented using sigtimedwait
  • added/improved test programs
  • ...

Important

The behavior that under *nux the signal handlers are run in the context of the main process, cannot be achieved under AmigaOS under all circumstances. Thus the implementation mainly fr the SIGALRM uses a separate AmigaOS Task, which executes the handler for SIGALRM. That again makes some stuff problematic to handle, like if the main process is sleeping and the SIGALRMhandler is repeatable called. For example a SIGINT (CTR-C) is catched by the separate AmigaOS Task. If the Task than checks for an abort, it can lead to a dead lock.

walkero-gr and others added 30 commits November 26, 2024 18:15
…n-of-clib4

Create an spe version of clib4
@migthymax migthymax requested a review from afxgroup January 17, 2025 14:48
@migthymax migthymax changed the base branch from master to development January 17, 2025 14:50
@afxgroup afxgroup merged commit e6c2fad into AmigaLabs:development Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants