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

Starts periodic schedule automatically #6212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

freddy77
Copy link
Collaborator

@freddy77 freddy77 commented Jan 7, 2025

Remove dependency from Xapi.
The function "loop_start" allows to set a wrapper for the thread loop if needed.

Remove dependency from Xapi.
The function "loop_start" allows to set a wrapper for the thread
loop if needed.

Signed-off-by: Frediano Ziglio <[email protected]>
@lindig
Copy link
Contributor

lindig commented Jan 7, 2025

What is the problem being addressed here? Some more motivation in the commit message would be useful. I can see that the client code becomes simpler.

@robhoes
Copy link
Member

robhoes commented Jan 7, 2025

I don't really understand it either... and the code in xapi.ml does not become simpler.

@freddy77
Copy link
Collaborator Author

freddy77 commented Jan 7, 2025

What is the problem being addressed here? Some more motivation in the commit message would be useful. I can see that the client code becomes simpler.

The root rationale was more reuse. The code was moved from Xapi to separate library in order to be reused (to rewrite some C code for forkexecd work in Ocaml) but moving to a separate directory is not enough, the code currently depends on the assumption that Xapi launch the scheduler loop in a separate thread. So to be transparent the loop is automatically created. Suggestion on how to improve the commit message?

@robhoes
Copy link
Member

robhoes commented Jan 7, 2025

IMO it is more transparent if the user of the library creates the thread...

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