RE: SDL-News: How to get PId of processes instantiated from a process type


Subject: RE: SDL-News: How to get PId of processes instantiated from a process type
From: Anthony Weber (weberaa#worldnet.att.net)
Date: Fri May 14 2004 - 16:10:58 GMT


Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Anthony Weber <weberaa#worldnet.att.net> to sdlnews -----

Forwarded by Rick Reed
Attachment moved to http://sdl-forum.org/ftp/pub/misc/PidListEx_4_5.zip
because too large for sdlnews (40K limit on attachments)
---------------------------------------------------------

Luyang,

I have an example that uses PidList, and it's attached. I updated it for
Tau 4.5.

However, depending on where you need the PId, there are other ways of
retrieving it. The easiest is to send a signal, wherein the receiver
retrieves SENDER. This can also be done in the environment, wherein
xOutEnv(), the standard output function for the environment, can retrieve it
from the signal itself. Another way would be to send a signal with SELF in
it, and retrieve it that way.

Tony
 
Anthony A. Weber
STEDEK Software
331 N. High Pointe Ct.
Roselle, IL 60172
Cell: 847-910-6674
 
-----Original Message-----
From: owner-sdlnews#sdl-forum.org [mailto:owner-sdlnews#sdl-forum.org] On
Behalf Of Rick Reed TSE
Sent: Friday, May 14, 2004 9:00 AM
To: SDLnews
Subject: SDL-news: How to get PId of processes instantiated from a process
type

Become an SDL Forum Society member
<http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews -----

From: "luyang" <luy#atm.mdc.tsinghua.edu.cn> (forwarded by Rick Reed)
-----------

Hi,dear members,

I am new I met some difficulties when i want to obtain the PId of a SDL
processes in my C programme.These processes are all instantiated from a
process type.I tried to use PId_Lit to get a PIdList, but it doesn't work.I
wonder where to put the code piece /*##NAME 'xxx'*/.
The process type is defined to be virtual in a package,and is redefined in a
block type in another package, and then two blocks are instantiated in my
sdl
system.I want the PIds of these two process instances, can you help me?
thanks a lot.

        luyang
        luy#atm.mdc.tsinghua.edu.cn
          2004-05-14

--End text from Rick Reed TSE <rickreed#tseng.co.uk> to sdlnews ---
For extra SDL Forum Society benefits join at
<http://www.sdl-forum.org/Society/members.htm>
or (iff this does not answer your question) email:
owner-sdlnews#sdl-forum.org

--End text from Anthony Weber <weberaa#worldnet.att.net> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>



This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:50 GMT