Action items from last meeting

From: Stickley, John <john_stickley@mentorg.com>
Date: Mon Dec 13 2004 - 14:11:29 PST

ITC Team,

My action item for the last meeting was to add two new sections
that clarify requirements for const argument types and argument
lifetimes.

Here is my proposed content for the two new sections:

5.1.3. Const Argument Types
All input arguments whose types are pointers with 'const' qualifier should be
strictly honored as read-only arguments. Attempts to cast away 'constness' and
alter any of the data denoted or pointed to by any of these arguments is prohibited
and may lead to unpredictable results.

5.1.4. Argument Lifetimes
The lifetime of any input pointer argument passed from the SCE-MI instructure
into a SCE-MI callback function (such is input ready callback or receive callback)
shall be assumed by the application to be limited to the duration of the callback.
Once the callback returns, the application cannot assume that such pointer arguments
remain valid. So, for example it would lead to undefined behavior for an
application receive callback to cache the SceMiMessageData * pointer and refer to
it at some point in time after the callback returns.

Conversely, the lifetime of any input pointer argument passed from an application
into a SCE-MI API call shall be assumed by the SCE-MI infrastructure to be limited
to the duration of the API call. Once the API call returns, the infrastructure
cannot assume that such pointer arguments remain valid.

-- johnS

This email may contain material that is confidential, privileged
and/or attorney work product for the sole use of the intended
recipient. Any review, reliance or distribution by others or
forwarding without express permission /\
is strictly prohibited. If you are /\ | \
not the intended recipient please | \ / |
contact the sender and delete / \ \
all copies. /\_/ K2 \_ \_
______________________________/\/ \ \
John Stickley \ \ \
Principal Engineer \ \________________
Mentor Graphics - MED \_
17 E. Cedar Place \ john_stickley@mentor.com
Ramsey, NJ 07446 \ Phone: (201) 818-2585
________________________________________________________________
Received on Tue Dec 14 09:48:33 2004

This archive was generated by hypermail 2.1.8 : Tue Dec 14 2004 - 09:48:37 PST