Object ProEngineer

Function ProEngineerMultithreadModeEnable


DEPRECATED: Since Creo 3
SUPERSEDED BY: No successor will be provided.
Description
Note: This function is deprecated. Call this function from your Creo Parametric TOOLKIT DLL user_initialize() if your application creates additional threads to do processing. Calling this function notifies Creo Parametric that it should run in multi-thread enabled mode. Running in this mode will remove the possibility of a memory corruption due to the interaction between Creo Parametric's thread libraries and application-created threads.

NOTE: In spawn and asynchronous mode, this function can be called but will not have any effect.

NOTE: Running Creo Parametric in multi-thread enabled mode may slow performance, so this function should be used only for applications that actually create multiple threads.

IMPORTANT NOTE: Calling Creo Parametric TOOLKIT functions from within multiple threads of any application in any mode is not supported. Extra threads may be created by applications only to do tasks which do not directly call Creo Parametric TOOLKIT functions.

Synopsis
#include <ProUtil.h>
ProErrorProEngineerMultithreadModeEnable(void)
Returns
PRO_TK_NO_ERRORThe function succeeded.

Manual References:

  1. Technical Summary of Changes for Creo 4.0 F000: Multithreading in Creo Parametric TOOLKIT Applications
  2. Fundamentals: Structure of a Creo Parametric TOOLKIT Application