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

Stopping timers thread and preventing epicsIO race condition #1

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

hinxx
Copy link
Contributor

@hinxx hinxx commented Apr 17, 2024

Both problems we observed while experimenting with the library.

I was not using the loader interface.

The epicsIO race condition appeared after the fsm was started, stopped and then restarted.

hinxx added 2 commits April 17, 2024 22:28
if epics.PV() calls the connection callback before the self._cond is created the error is thrown:

  File "/python/fsmscan/.venv/lib/python3.10/site-packages/smlib/io.py", line 61, in concb
    self.lock()
  File "/python/fsmscan/.venv/lib/python3.10/site-packages/smlib/io.py", line 53, in lock
    self._cond.acquire()
AttributeError: 'epicsIO' object has no attribute '_cond'. Did you mean: '_conn'?
in case of loader use it is already killed in killAll()
@darcato
Copy link
Owner

darcato commented Apr 18, 2024

Looks good to me.

@darcato darcato merged commit 11150a2 into darcato:master Apr 19, 2024
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.

2 participants