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

Fix issue when osdThreadGetTimer() called from non EPICS threads #200

Conversation

FreddieAkeroyd
Copy link
Contributor

This fixes the issue reported in https://epics.anl.gov/tech-talk/2021/msg01691.php

The function need to use epicsThreadImplicitCreate() to handle the case of if it is called from a non EPICS thread - this approach is already used in epicsThreadSuspendSelf, epicsThreadGetPrioritySelf, epicsThreadGetIdSelf and epicsThreadGetNameSelf.
This repeated logic should probably be moved into a separate function, but maybe that is for a separate PR?

It was not calling epicsThreadImplicitCreate() in such cases
@FreddieAkeroyd
Copy link
Contributor Author

Maybe I do a separate PR for the bigger refactor and branch that PR off 3.15 for it to be upmerged later?

@AppVeyorBot
Copy link

@anjohnson
Copy link
Member

Closing this, I'll be merging up the refactor PR from 3.15 instead shortly.

@anjohnson anjohnson closed this Sep 16, 2021
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.

None yet

3 participants