Skip to content

Commit

Permalink
Device selector might be called more than once
Browse files Browse the repository at this point in the history
The description of device selectors in the "Device selection" section
does not say that a selector is called exactly once for each root
device.  Change the wording of the `platform` selector constructor to be
consistent with this wording, leaving the number of times it is called
ambiguous.

We might want to reconsider this, though.  Why wouldn't we want to
require the selector to be called exactly once?
  • Loading branch information
gmlueck committed Jun 25, 2024
1 parent 576f274 commit 1b1bde4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1001,8 +1001,8 @@ explicit platform(const DeviceSelector& selector)
_Constraints:_ The [code]#DeviceSelector# must be a type that satisfies the
requirements of a <<device-selector>> as defined in <<sec:device-selector>>.

_Effects:_ The [code]#selector# is called once for every <<root-device>> as
described in <<sec:device-selector>>.
_Effects:_ The [code]#selector# is called for every <<root-device>> as described
in <<sec:device-selector>>.
Constructs a [code]#platform# object that is a copy of the platform which
contains the device that is selected by [code]#selector#.

Expand Down

0 comments on commit 1b1bde4

Please sign in to comment.