-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resrc: Add resource API context support
Add resource API context support to streamline our future scheduling improvements which includes upcoming scheduler-driven aggregate updates work. Add resrc_api.h where resrc_api_init () and resrc_api_fini () are declared. resrc_api_init () creates and initializes an instance of the resource APIs which are implemented across resrc, resrc_tree, resrc_flow, and resrc_reqst. Once the context is returned from resrc_api_init (), the caller must pass it as an opaque handle to certain API calls in the resrc and friends. This allows these APIs to act on the specific API instance. Define struct resrc_api_ctx in resrc_api_internal.h which should only be included om resource API internal implementation files Over time, resrc_api will add some other API-level functions that will allow an API instance to be specialized. Add, delete and revise some API calls and internals as part of this commit, as well: - Add query routines into resrc tree/flow APIs to allow users to fetch the roots of constructed graphs using the resource API context; - Clean up rsreader APIs and sched internals a bit using these new routines
- Loading branch information
Showing
18 changed files
with
697 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.