FSCRT_THREADHANDLER Struct Reference

Structure for multiple-thread support. More...

#include <fs_base_r.h>

Public Attributes

FS_LPVOID clientData
 User-defined data. More...
 
FSCRT_THREAD(* GetCurrentThread )(FS_LPVOID clientData)
 A callback function to retrieve the current thread. More...
 
void(* SetThreadFinalizeCallback )(FS_LPVOID clientData, FSCRT_CALLBACK_THREADFINALIZE callbackThreadFinalize)
 A callback function to pass a callback function FSCRT_CALLBACK_THREADFINALIZE to applications. More...
 

Detailed Description

Structure for multiple-thread support.

Note
This is a handler and it is implemented by applications.
Foxit PDF SDK supports multiple-thread environments, and maintain some internal data.

Member Data Documentation

FS_LPVOID FSCRT_THREADHANDLER::clientData

User-defined data.

Note
Applicaitons can use this field to track controls.
FSCRT_THREAD(* FSCRT_THREADHANDLER::GetCurrentThread) (FS_LPVOID clientData)

A callback function to retrieve the current thread.

Parameters
[in]clientDataPointer to user-defined data.
Returns
The pointer to the current thread. NULL if fails.
void(* FSCRT_THREADHANDLER::SetThreadFinalizeCallback) (FS_LPVOID clientData, FSCRT_CALLBACK_THREADFINALIZE callbackThreadFinalize)

A callback function to pass a callback function FSCRT_CALLBACK_THREADFINALIZE to applications.

Parameters
[in]clientDataPointer to user-defined data.
[in]callbackThreadFinalizePointer to a callback function FSCRT_CALLBACK_THREADFINALIZE.
Returns
None.
Note
Applications should save the parameter callbackThreadFinalize and call it when the current thread finishes.
This function will be called once applications call the function FSCRT_Library_SetThreadHandler.

The documentation for this struct was generated from the following file:

Foxit Corporation