Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PfAttachSleuthMonitorDll()

Start a fontsleuth monitor

Synopsis:

#include <font_api.h>

int PfAttachSleuthMonitorDll (fontdll_t dll,
                              int prio );

Arguments:

dll
A font server context, returned by PfAttachLocalDll().
prio
The suggested priority at which to run the fontsleuth monitor thread. If this value is set to -1, the function uses the current process priority. This value cannot exceed a maximum value -- if it does, it is set to an internally defined maximum.

Library:

font

Description:

This function starts a thread to monitor requests from fontsleuth to load and unload font files. If there are new fonts, or fonts are deleted, fontsleuth notifies you.

Returns:

0
Success
-1
An error occurred (errno is set).

Examples:

See the example for PfAssignDllCx().

Classification:

Photon

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

PfAttachLocalDll().

Fonts chapter of the Photon Programmer's Guide