All Manuals > LispWorks COM/Automation User Guide and Reference Manual > 2 COM Reference Entries

NextPrevUpTopContentsIndex

server-can-exit-p

server-in-use-p

Functions
Summary

Predicates for whether a COM server is in use or can exit.

Package

com

Signature

server-can-exit-p => result

Signature

server-in-use-p => result

Arguments

None.

Values

result

A boolean.

Description

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

  1. There are live objects other than the class factories.
  2. Any of the class factories has more than one reference.
  3. 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.

See also

automation-server-top-loop


LispWorks COM/Automation User Guide and Reference Manual - 14 Feb 2015

NextPrevUpTopContentsIndex