1828466 Members
3300 Online
109978 Solutions
New Discussion

Re: Find AST level

 
SOLVED
Go to solution
Hans Adriaanse
Advisor

Find AST level

In a C function I want to find out if this function is handled within or not. I would assume that sys$getjpi is suitable to find the ast level or something like that. But I cannot find the item that gives me the information that my function is handled in an AST or not.
Any ideas ??

Thanks,
Hans
4 REPLIES 4
Volker Halle
Honored Contributor

Re: Find AST level

Hans,

the PCB$L_ASTACT longword in the PCB contains one bit for active ASTs for each access mode.

$GETJPI item code JPI$_ASTACT retuns a longword bit vector with a bit set for each access mode with an active AST.

Volker.
Hoff
Honored Contributor
Solution

Re: Find AST level

I'd call lib$ast_in_prog. It's fast, easy, and it knows how to optimize the underlying system service calls where that's feasible.

code example:
http://www.eight-cubed.com/examples/framework.php?file=lib_ast_in_prog.c

documentation:
http://h71000.www7.hp.com/DOC/82final/5932/5932pro_002.html#ast_in_p

Stephen Hoffman
HoffmanLabs
Ian Miller.
Honored Contributor

Re: Find AST level

LIB$AST_IN_PROG

http://h71000.www7.hp.com/doc/82final/5932/5932pro_002.html#index_x_19

____________________
Purely Personal Opinion
Hans Adriaanse
Advisor

Re: Find AST level

Thank you guys. Both suggestions solved my problem.