BAP Online Manuals : Library Reference : Library by Name : get_my_id
Previous: getbacktrack
Next: get_my_ids

6.2.66. get_my_id

gets the process ID of the running process

SYNOPSIS

INCLUDE 'sysman.h'
get_my_id(ProcessID)

SYNTAX

get_my_id(ProcessID) (o)

ARGUMENTS

server(ProcessID) (o) the id of the running process

DESCRIPTION

Matches the process ID of the running process with ProcessID. Other processes may send messages to this process by using this ID.

The current node number can be extracted from the process ID with set_id .

EXAMPLE

get_my_id(MyID),
exec(( do_something(Result), send_msg(MyID,Result) )),
do_something_else,
rec_msg(_,Msg),
write(Msg),nl.

ERRORS

No runtime errors.

LAYERS

client-server

RELATED PREDICATES

exec , xcall , alloc_server , get_my_ids , set_id ,

send_msg , rec_msg


BAP Online Manuals : Library Reference : Library by Name : get_my_id
Previous: getbacktrack
Next: get_my_ids