Functions

Summary

Package

Signature

Signature

Arguments

Values

Description

The function
server-in-use-p
returns true when the COM server is in use, which means one or more of the following:

There are live objects other than the class factories.

Any of the class factories has more than one reference.

The server is locked by a client call to the COM method
IClassFactory::LockServer
.

The function
server-can-exit-p
returns true if the server can exit, which means that the server is not in use (that is,
(not (server-in-use-p))
returns
t
, and also that there are no other "working processes", which means that all other processes except the one that calls
server-can-exit-p
are "Internal servers" (see
mp:process-run-function
).

The main purpose of
server-can-exit-p
is to be the
exit-function
for automation-server-top-loop, either as the default or called from a supplied
exit-function
.