Identifying channels in callbacks

New Message Reply Date view Thread view Subject view Author view

Drew Hess (dhess++at++vision.arc.nasa.gov)
Fri, 26 Aug 1994 10:59:32 -0700


I need a way of uniquely identifying the channel passed to a post/predraw
callback in Performer 1.2. According to the man page, the return value of
pfNewChan() is a handle to the newly created channel, so it sounds like I could
use the handle for what I need. (What's actually returned is of type
(pfChannel *), so should I use the pointer itself to identify the channel or
should I dereference the pointer and use that value? The latter would work if,
for instance, the pointer points to an integer that's used as a table index
into a libpr or libpf internal table.)

Is this a valid assumption? Are these handles static throughout the run-time
life of the program? (i.e. can I assume that Performer will not go behind my
back and decide to change the value of the handle sometime while the program is
running?) Do they have the same value when passed to different processors on
an MP machine running Performer with separate app, cull, and draw processes?

Thanks for any answers,
-dwh-
dhess++at++vision.arc.nasa.gov


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:31 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.