Skip to content

Should instance IDs (pcp::instance_id_type) been signed or unsigned? #11

Description

@pcolby

Currently pcp::instance_id_type is int.

In typical PMDA flow, instance IDs are first assigned to the PCP's pmdaInstid::i_inst (via the pmdaIndom table) as int.

However, PCP's pmdaFetchCallBack signature uses unsigned int to supply those same instance IDs back to the PMDA.

So it appears that there's no technically-right signedness to use for instance IDs. Instead, we should choose a signedness that provides the PMDA++ users the most intuitive behaviour.

Of course, testing the high-bit cases would be the right way to start.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions