Foxit PDF SDK
FX_THREADHANDLER Struct Reference

Thread handler for application extension. More...

Public Attributes

FX_HTHREAD(* CreateThread )(FX_LPVOID pUserData, FX_INT32 nPriority, size_t szStack, FX_CALLBACK_ThreadProc lpfThreadProc, FX_LPVOID param)
 Callback function to create a thread. More...
 
FX_BOOL(* ExitThread )(FX_LPVOID pUserData)
 Callback function to exit from the current thread. More...
 
FX_HTHREAD(* GetCurrentThread )(FX_LPVOID pUserData)
 Callback function to get handle of the current thread. More...
 
FX_INT32(* GetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread)
 Callback function to get thread priority. More...
 
FX_LPVOID pUserData
 Pointer to user data.
 
void(* SetThreadPriority )(FX_LPVOID pUserData, FX_HTHREAD hThread, FX_INT32 nPriority)
 Callback function to set thread priority. More...
 
FX_INT32(* WaitForMultipleThreads )(FX_LPVOID pUserData, const FX_HTHREAD *pThreads, FX_INT32 nCount)
 Wait for termination of multiple threads. More...
 
FX_INT32(* WaitForSingleThread )(FX_LPVOID pUserData, FX_HTHREAD hThread)
 Wait for termination of a single thread. More...
 
void(* Yield )(FX_LPVOID pUserData)
 Callback function to change CPU time to another thread. More...
 

Detailed Description

Thread handler for application extension.

Note
This feature is disabled under single-thread mode or FPDFAPI_MT isn't defined.