Skip to content

Try to avoid race condition on startup#88

Open
FreddieAkeroyd wants to merge 1 commit into
galil-oldfrom
pwrdet_race_condition
Open

Try to avoid race condition on startup#88
FreddieAkeroyd wants to merge 1 commit into
galil-oldfrom
pwrdet_race_condition

Conversation

@FreddieAkeroyd

@FreddieAkeroyd FreddieAkeroyd commented Jun 8, 2026

Copy link
Copy Markdown
Member

Try and avoid what looks like a race condition on startup - previously it would try and change the number quite soon after ioc start, change this so it does it after its usual periodic period, but now also stop the repeated resets as they are not needed. Also add an SDIS to read so it doesn't queue at same time as a write, but chance of that causing an issue were quite small.

There is still a small window of an issue - currently it autosaves as if it were a position, so within 5 seconds of a change. So there is a 5 second window when it does that one and only change that if the ioc were to restart it would flag an error. We could change to an autosave triggered set if we feel this is an issue.

Will need apply to new galil driver too, will do that post review

@FreddieAkeroyd FreddieAkeroyd force-pushed the pwrdet_race_condition branch from f995877 to 8200d1b Compare June 8, 2026 10:23
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.

1 participant