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

QVI_SCOPE_PROCESS does not what it should in threads #42

Open
GuillaumeMercier opened this issue Aug 22, 2022 · 0 comments
Open

QVI_SCOPE_PROCESS does not what it should in threads #42

GuillaumeMercier opened this issue Aug 22, 2022 · 0 comments

Comments

@GuillaumeMercier
Copy link
Collaborator

In this sequence of calls:

qv_context_t *ctx;
qv_thread_context_create(&ctx);

 qv_scope_t *base_scope;
 qv_scope_get(
                       ctx,
                       QV_SCOPE_PROCESS,
                       &base_scope
                       );

The scope does not represent what it should, as only the resources usable by the calling thread are reported.
Instead, I would expect the resources usable by the whole process (that is, the one that spawned the thread)
to be reported.

Currently, no instrinsic scope is able to make this distinction.

in issue #41, @samuelkgutierrez proposes to add an intrinsic QVI_SCOPE_SELF that would differ in behaviour
when used by a process or a 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

No branches or pull requests

1 participant