Skip to content

Conversation

@newville
Copy link
Contributor

this an even better solution to #60, as it explicitly waits for getNumFramesRead() to return 0 before starting the check of whether this has advanced to the next frame.

}
}
while (acquire && (frameNumber < numFrames)) {
usleep(2);

Choose a reason for hiding this comment

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

Is this 2us sleep required?

@BenBradnick
Copy link

I'm happy for this to be merged as this won't affect the Xspress 3X systems. I presume the 2us sleep inside the while loop isn't needed to get this working and was left over from testing? As this is called for every frame rather than just the first.

@newville
Copy link
Contributor Author

@BenBradnick, I have not had a chance to test master after merging #54.

I'm not sure if these delays are needed only for the original Xspress3 series.

I would suggest not merging yet.

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