MPE/iX Intrinsics Reference Manual (32650-90875)

74 Chapter4
Command Definitions (ABORTSESS - FCLOSE)
CLOSELOG
Operation Notes
The number of users and log entries are independent of the number of times the
OPENLOG/CLOSELOG intrinsics are called within an application. The user logging facility
establishes a logging buffer (LOGBUFF) entry and increments the user count only at the first
OPENLOG call. Another counter keeps track of the number of times OPENLOG and CLOSELOG
are called. The counter is incremented for every OPENLOG and decremented for every
CLOSELOG. This ensures that the entry in LOGBUFF is released only for the last CLOSELOG
call (call counter = 0).
Related Information
Intrinsics OPENLOG
Manual User Logging Programmer's Guide