get_my_ids
BAP Online Manuals : Library
Reference : Library by Name
: get_my_ids
Previous: get_my_id
Next: getenv
BAP Online Manuals : Library Reference : Library by Name : get_my_ids
Previous: get_my_id
Next: getenv
Previous: get_my_id
Next: getenv
6.2.67. get_my_ids
gets the TID and PID of the running process
SYNOPSIS
INCLUDE 'sysman.h' get_my_ids(Tid,Pid)
SYNTAX
get_my_ids(Tid) (o,o)
ARGUMENTS
int(Tid) (o) Tid of the running process
int(Pid) (o) Pid of the running process
DESCRIPTION
Shortcut for using get_my_id() and set_id to extract the current TID and PID.
EXAMPLE
get_my_ids(Tid,_), write("Locatet on Processor ",Tid),nl.
ERRORS
No runtime errors.
LAYERS
client-server
RELATED PREDICATES
exec , xcall , alloc_server , get_id , set_id , send_msg , rec_msg
BAP Online Manuals : Library Reference : Library by Name : get_my_ids
Previous: get_my_id
Next: getenv